html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #1f2937;
  background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 42%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  border-bottom: 1px solid rgba(251, 207, 232, 0.72);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f472b6, #ef4444, #f97316);
  box-shadow: 0 15px 34px rgba(244, 63, 94, 0.36);
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a,
.footer-nav a {
  color: #4b5563;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: #db2777;
  background: #fce7f3;
  transform: translateY(-1px);
}

.header-search,
.inline-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.inline-search input,
.large-search input {
  width: 260px;
  border: 2px solid #fbcfe8;
  border-radius: 999px;
  padding: 11px 16px;
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.inline-search input:focus,
.large-search input:focus {
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.header-search button,
.inline-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #ef4444, #f97316);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(244, 63, 94, 0.28);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fce7f3;
  color: #be185d;
  font-size: 22px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 560px;
  min-height: 520px;
  color: #ffffff;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(90deg, #f472b6, #ef4444, #f97316);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.2) contrast(1.04);
}

.hero-bg span {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.74), rgba(190, 24, 93, 0.42), rgba(249, 115, 22, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 22px;
  color: #fff7ed;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #fff1f2;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.65;
}

.hero-tags,
.detail-meta,
.movie-meta-row,
.tag-list,
.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-tags span,
.detail-meta span,
.movie-meta-row span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #ef4444, #f97316);
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.35);
}

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

.btn-link {
  color: #fffbeb;
  padding-left: 4px;
  padding-right: 4px;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 6vw, 80px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls > button,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
  opacity: 1;
}

.quick-search {
  margin-top: -48px;
  position: relative;
  z-index: 7;
}

.quick-search-panel {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(251, 207, 232, 0.7);
  box-shadow: 0 25px 70px rgba(190, 24, 93, 0.18);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.quick-search-panel p {
  max-width: 780px;
  margin: 0 0 20px;
  color: #6b7280;
  line-height: 1.8;
}

.large-search input {
  width: min(100%, 540px);
  min-height: 52px;
  border-radius: 18px;
}

.large-search button {
  min-height: 52px;
  border-radius: 18px;
}

.content-section {
  margin-top: 68px;
}

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

.section-heading h2,
.ranking-head h2,
.story-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.section-action,
.ranking-head a {
  color: #db2777;
  font-weight: 900;
  text-decoration: none;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(251, 207, 232, 0.58);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 114, 182, 0.85);
  box-shadow: 0 22px 42px rgba(190, 24, 93, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.18);
}

.poster-badge,
.poster-year {
  position: absolute;
  top: 12px;
  z-index: 2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.88);
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 12px;
}

.poster-year {
  right: 12px;
  background: rgba(249, 115, 22, 0.88);
}

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

.movie-meta-row {
  color: #db2777;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.movie-meta-row span {
  color: #db2777;
  background: #fce7f3;
}

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

.movie-card h3 a {
  color: #111827;
  text-decoration: none;
}

.movie-card h3 a:hover {
  color: #db2777;
}

.movie-card p {
  display: -webkit-box;
  min-height: 62px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-list span {
  color: #9f1239;
  background: #fff1f2;
}

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

.category-tile,
.category-card-large a {
  display: block;
  min-height: 154px;
  padding: 22px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 28px;
  background: linear-gradient(135deg, #ec4899, #ef4444 55%, #f97316);
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.24);
  overflow: hidden;
  position: relative;
}

.category-tile::after,
.category-card-large a::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -58px;
  bottom: -70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile span,
.category-card-large h2 {
  display: block;
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 950;
}

.category-tile strong,
.category-card-large p {
  display: block;
  color: #fff7ed;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 26px;
  border-radius: 30px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.2);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ranking-head h2 {
  color: #ffffff;
  font-size: 28px;
}

.ranking-head a {
  color: #f9a8d4;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-num {
  grid-row: span 2;
  color: #f9a8d4;
  font-size: 22px;
  font-weight: 950;
}

.rank-title {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-meta {
  color: #fbcfe8;
  font-size: 13px;
}

.page-hero {
  position: relative;
  min-height: 360px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, #f472b6, #ef4444, #f97316);
}

.simple-hero {
  display: flex;
  align-items: center;
  padding: 78px 0;
}

.simple-hero p:first-child,
.ranking-hero p:first-child {
  margin: 0 0 12px;
  color: #ffedd5;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.simple-hero h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.simple-hero p:last-child,
.page-hero-content p {
  max-width: 760px;
  margin: 0;
  color: #fff7ed;
  font-size: 19px;
  line-height: 1.75;
}

.category-hero,
.ranking-hero {
  min-height: 430px;
}

.category-hero > img,
.ranking-hero > img,
.movie-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-hero-mask,
.movie-detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(219, 39, 119, 0.5), rgba(249, 115, 22, 0.36));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #ffe4e6;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(251, 207, 232, 0.75);
  box-shadow: 0 14px 38px rgba(190, 24, 93, 0.08);
}

.inline-search input {
  width: min(440px, 56vw);
}

.filter-bar select {
  min-height: 46px;
  border: 2px solid #fbcfe8;
  border-radius: 16px;
  padding: 0 14px;
  color: #4b5563;
  background: #ffffff;
  outline: none;
}

.filter-pills button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #9f1239;
  background: #fff1f2;
  font-weight: 900;
  cursor: pointer;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: #9f1239;
  border-radius: 24px;
  background: #fff1f2;
  font-weight: 900;
}

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

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

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

.category-card-large a {
  min-height: 230px;
}

.category-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.category-card-head span {
  font-size: 34px;
  font-weight: 300;
}

.category-samples {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}

.category-samples span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(251, 207, 232, 0.72);
  box-shadow: 0 14px 32px rgba(190, 24, 93, 0.08);
}

.rank-row-poster {
  display: block;
  width: 86px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
}

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

.rank-row-body p {
  margin: 8px 0;
  color: #6b7280;
  line-height: 1.7;
}

.rank-row-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.rank-row-top span {
  color: #db2777;
  font-size: 22px;
  font-weight: 950;
}

.rank-row-top strong {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}

.rank-row-action {
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ec4899, #ef4444, #f97316);
}

.movie-detail-hero {
  position: relative;
  min-height: 620px;
  color: #ffffff;
  overflow: hidden;
  background: #111827;
}

.movie-detail-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 70px;
  padding-bottom: 70px;
}

.movie-detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

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

.detail-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.detail-one-line {
  max-width: 880px;
  margin: 0 0 24px;
  color: #fff1f2;
  font-size: 22px;
  line-height: 1.7;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.detail-tags span {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
}

.player-section {
  margin-top: -78px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #030712;
  box-shadow: 0 32px 80px rgba(17, 24, 39, 0.32);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.18), rgba(0, 0, 0, 0.3));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #ef4444, #f97316);
  font-size: 36px;
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.44);
  padding-left: 6px;
}

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

.movie-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.story-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(251, 207, 232, 0.75);
  box-shadow: 0 18px 46px rgba(190, 24, 93, 0.08);
}

.story-card h2 {
  font-size: 27px;
  margin-bottom: 16px;
}

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

.page-search {
  margin-top: 28px;
}

.site-footer {
  margin-top: 76px;
  color: #fce7f3;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 38px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 680px;
  margin: 0;
  color: #fbcfe8;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  color: #fbcfe8;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 207, 232, 0.18);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .compact-grid,
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .two-column {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    min-height: 66px;
  }

  .nav-panel {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #fbcfe8;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    border-radius: 14px;
  }

  .header-search {
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .hero {
    height: 620px;
  }

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

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

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

  .section-heading,
  .filter-bar,
  .footer-inner {
    flex-direction: column;
    display: flex;
    align-items: stretch;
  }

  .movie-detail-grid,
  .movie-body {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row-action {
    grid-column: 2;
    width: fit-content;
  }

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 18px;
  }

  .hero {
    height: 650px;
  }

  .hero-copy {
    padding-top: 70px;
  }

  .hero-actions,
  .large-search,
  .inline-search {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .large-search button,
  .inline-search button {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .side-grid,
  .library-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .movie-card p {
    min-height: auto;
  }

  .hero-controls {
    left: 18px;
    right: auto;
  }

  .player-cover span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
