:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #38bdf8;
  --blue-deep: #2563eb;
  --cyan: #22d3ee;
  --orange: #fb923c;
  --shadow: 0 28px 90px rgba(37, 99, 235, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.32), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  color: white;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
  font-size: 14px;
}

.brand span:last-child {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #38bdf8;
}

.header-search {
  position: relative;
  width: 290px;
}

.header-search input,
.mobile-search input,
.big-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  outline: none;
  border-radius: 999px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.86);
}

.header-search input {
  padding: 12px 46px 12px 18px;
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #cbd5e1;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: white;
  background: rgba(30, 41, 59, 0.9);
  width: 42px;
  height: 42px;
  font-size: 22px;
}

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

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

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

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px 0;
}

.mobile-search {
  display: flex;
  gap: 10px;
  padding: 0 0 18px;
}

.mobile-search input {
  padding: 12px 16px;
}

.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 750;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  cursor: pointer;
}

.mobile-search button {
  padding: 0 18px;
}

.main-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 48px;
}

.page-shell {
  padding-top: 112px;
}

.hero-carousel {
  position: relative;
  min-height: 590px;
  margin-bottom: 64px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  padding: 72px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  filter: blur(10px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.55;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 48%, rgba(2, 6, 23, 0.42) 100%),
    radial-gradient(circle at 72% 36%, rgba(56, 189, 248, 0.22), transparent 28rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.15);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.34);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.32);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.88);
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.42);
}

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

.hero-controls button,
.hero-dots button {
  border: 0;
  color: white;
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.48;
}

.hero-dots button.active {
  width: 30px;
  opacity: 1;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.section-heading > span {
  font-size: 28px;
}

.section-heading a {
  margin-left: auto;
  color: #67e8f9;
  font-weight: 750;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.95));
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.24);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 24px 54px rgba(37, 99, 235, 0.28);
}

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #020617);
}

.movie-card-large .movie-poster {
  aspect-ratio: 16 / 10;
}

.movie-card-compact,
.movie-card-mini {
  border-radius: 16px;
}

.movie-card-mini .movie-info p,
.movie-card-compact .movie-info p {
  display: none;
}

.movie-card-mini .movie-poster {
  aspect-ratio: 3 / 4;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.movie-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.75));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .movie-overlay {
  opacity: 1;
}

.play-dot {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.86);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.36);
}

.movie-duration,
.movie-category {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.movie-duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.66);
}

.movie-category {
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(34, 211, 238, 0.82));
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0;
  color: white;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.rank-meta,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 13px;
}

.movie-meta span,
.rank-meta span,
.detail-stats span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.23), rgba(34, 211, 238, 0.08)),
    rgba(15, 23, 42, 0.88);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.22);
}

.category-tile {
  padding: 24px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.48);
}

.category-tile span {
  font-size: 34px;
}

.category-tile h3,
.category-overview-head h2 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.category-tile p,
.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.two-column-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: auto 106px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.96));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.42);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
}

.rank-card img {
  width: 106px;
  height: 72px;
  object-fit: cover;
  border-radius: 13px;
  background: #1e293b;
}

.rank-card h3 {
  margin: 0;
  font-size: 17px;
}

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

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

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 42px;
  padding: 54px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.2), transparent 30rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.86));
  box-shadow: var(--shadow);
}

.big-search {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
}

.big-search input {
  min-height: 58px;
  padding: 0 24px;
  font-size: 16px;
}

.big-search button {
  min-width: 132px;
  font-size: 16px;
}

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

.breadcrumb a {
  color: #67e8f9;
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.category-overview-head > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.2);
  font-size: 30px;
}

.mini-card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.72)),
    var(--detail-bg) center / cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 52px;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #1e293b;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

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

.player-section {
  margin-top: 42px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-overlay-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.video-overlay-button.hidden {
  display: none;
}

.video-overlay-button span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.48);
  font-size: 34px;
}

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

.detail-article,
.detail-sidebar {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.18);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.detail-sidebar h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

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

.detail-article p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.92;
}

.detail-sidebar {
  align-self: start;
  padding: 26px;
}

.detail-sidebar dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.detail-sidebar div {
  display: grid;
  gap: 5px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-sidebar dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-sidebar dd {
  margin: 0;
  color: white;
  line-height: 1.55;
}

.detail-sidebar a {
  color: #67e8f9;
}

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

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), #020617);
}

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

.footer-brand p {
  max-width: 480px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

[data-search-item].is-hidden {
  display: none;
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 52px;
  }

  .hero-poster {
    display: none;
  }

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

  .movie-grid-large,
  .category-grid,
  .mini-card-row,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-hero-content {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .main-shell,
  .page-shell {
    width: min(100% - 24px, 1280px);
    padding-top: 84px;
  }

  .hero-carousel {
    min-height: 560px;
    border-radius: 22px;
  }

  .hero-slide,
  .page-hero,
  .detail-hero-content {
    padding: 28px;
  }

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

  .hero-content p,
  .page-hero p,
  .detail-copy p {
    font-size: 15px;
  }

  .hero-controls {
    bottom: 16px;
  }

  .movie-grid,
  .movie-grid-large,
  .category-movie-grid,
  .category-grid,
  .compact-grid,
  .mini-card-row,
  .ranking-list,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .rank-card {
    grid-template-columns: auto 78px minmax(0, 1fr);
  }

  .rank-card img {
    width: 78px;
    height: 92px;
  }

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

  .detail-cover {
    width: min(220px, 70vw);
  }

  .big-search {
    flex-direction: column;
  }

  .big-search button {
    min-height: 52px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid-large,
  .category-movie-grid,
  .category-grid,
  .compact-grid,
  .mini-card-row,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .mobile-links {
    grid-template-columns: 1fr;
  }
}
