:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #0891b2;
  --blue: #2563eb;
  --teal: #0d9488;
  --orange: #f97316;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0891b2, #2563eb 52%, #0d9488);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-text strong,
.footer-logo {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  width: min(320px, 28vw);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.header-search input,
.mobile-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  color: #ffffff;
  background: transparent;
  padding: 11px 14px;
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #0f172a;
  background: #ffffff;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-panel.is-open {
  max-height: 360px;
  padding-bottom: 18px;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #0891b2, #2563eb, #0d9488);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.62), rgba(8, 145, 178, 0.42)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.36), transparent 30%), radial-gradient(circle at 80% 22%, rgba(45, 212, 191, 0.22), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 54px;
  align-items: center;
  padding: 76px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.10);
}

.hero-copy h1,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 25px);
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.hero-tags span,
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.hero-actions,
.detail-title-block .btn {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 440px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.hero-poster img,
.poster img,
.ranking-poster img,
.rank-thumb img,
.category-large-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.hero-poster:hover img,
.movie-card:hover .poster img,
.category-large:hover img,
.ranking-row:hover .ranking-poster img {
  transform: scale(1.06);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 34px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

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

.quick-strip,
.section-wrap,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -42px;
  position: relative;
  z-index: 5;
}

.quick-strip a {
  display: block;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: var(--soft-shadow);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  font-size: 20px;
}

.quick-strip span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.section-wrap {
  padding: 56px 0;
}

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

.section-title h2,
.rank-head h2,
.category-nav-strip h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-title a,
.wide-link,
.category-nav-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line), var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.84));
}

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  background: rgba(8, 145, 178, 0.92);
}

.poster-score {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(249, 115, 22, 0.92);
}

.movie-info {
  padding: 16px;
}

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

.movie-info h3 a:hover {
  color: var(--cyan);
}

.movie-meta,
.movie-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  margin-top: 10px;
  min-height: 42px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #2563eb 56%, #0d9488);
  box-shadow: var(--soft-shadow);
}

.category-card strong,
.category-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.category-card strong {
  font-size: 24px;
  font-weight: 950;
}

.category-card small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.category-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -30px;
  top: -30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

.rank-panel,
.content-card,
.side-card,
.player-card,
.filter-panel {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line), var(--soft-shadow);
}

.rank-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 104px;
}

.rank-list {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.rank-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.rank-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 950;
  font-size: 13px;
}

.rank-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f8fafc;
}

.rank-thumb {
  display: block;
  width: 58px;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: #e0f2fe;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  font-weight: 950;
}

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

.rank-score {
  color: var(--orange);
  font-weight: 950;
}

.wide-link {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  background: #ecfeff;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a 58%, #111827);
}

.footer-inner {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px;
  padding: 48px 0 32px;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  margin: 14px 0 0;
  color: #94a3b8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 14px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #0891b2, #2563eb, #0d9488);
}

.page-hero {
  padding: 74px 0;
}

.page-hero > div,
.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero p,
.detail-title-block p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs.light {
  color: rgba(255, 255, 255, 0.76);
}

.crumbs a:hover {
  color: var(--cyan);
}

.crumbs.light a:hover {
  color: #ffffff;
}

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

.category-large {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-large-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 148px;
  overflow: hidden;
  background: #e0f2fe;
}

.category-large-copy {
  display: block;
  padding: 22px;
}

.category-large-copy strong {
  display: block;
  font-size: 24px;
  font-weight: 950;
}

.category-large-copy small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

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

.filter-search-box input,
.filter-selects select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #f8fafc;
  padding: 0 14px;
}

.filter-search-box input:focus,
.filter-selects select:focus {
  border-color: rgba(8, 145, 178, 0.65);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 22px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.category-nav-strip {
  padding-top: 0;
}

.category-nav-strip > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-nav-strip a {
  padding: 9px 13px;
  background: #ecfeff;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr) 120px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line), var(--soft-shadow);
}

.ranking-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 950;
}

.ranking-poster {
  display: block;
  width: 96px;
  height: 126px;
  overflow: hidden;
  border-radius: 16px;
  background: #e0f2fe;
}

.ranking-copy h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.ranking-copy p {
  margin: 8px 0 10px;
  color: var(--muted);
}

.ranking-score {
  text-align: right;
}

.ranking-score strong {
  display: block;
  color: var(--orange);
  font-size: 28px;
  font-weight: 950;
}

.ranking-score span {
  color: var(--muted);
  font-size: 12px;
}

.detail-hero {
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.74), rgba(8, 145, 178, 0.32)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.24), transparent 30%);
}

.detail-hero-inner {
  padding: 60px 0 74px;
}

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

.detail-poster {
  border-radius: 30px;
  box-shadow: var(--shadow);
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  padding: 18px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.player-trigger {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.20), rgba(2, 6, 23, 0.70));
  cursor: pointer;
}

.player-box.is-playing .player-trigger {
  display: none;
}

.play-circle {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--cyan);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(255, 255, 255, 0.18);
  font-size: 30px;
}

.player-trigger strong {
  font-size: 20px;
}

.content-card,
.side-card {
  padding: 26px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.detail-side {
  display: grid;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 104px;
}

.info-list {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  font-weight: 800;
}

.related-section {
  padding-top: 0;
}

.image-missing {
  opacity: 0;
}

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

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

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

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .menu-toggle,
  .mobile-panel {
    display: block;
  }

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

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

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 54px;
  }

  .hero-poster {
    min-height: 360px;
    max-width: 280px;
  }

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

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

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

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

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

  .detail-hero-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .quick-strip,
  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .search-grid,
  .category-grid,
  .category-large-grid,
  .filter-selects,
  .footer-inner,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-controls {
    bottom: 18px;
  }

  .hero-controls > button {
    display: none;
  }

  .detail-poster {
    width: 180px;
  }

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