:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(14, 165, 233, 0.22);
  --line-strong: rgba(56, 189, 248, 0.48);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --soft: #64748b;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --blue: #0ea5e9;
  --amber: #f59e0b;
  --shadow: rgba(14, 165, 233, 0.22);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.16), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.12), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

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

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(2, 132, 199, 0.16);
}

.nav-inner {
  width: min(100% - 32px, var(--max));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--sky), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.42);
  font-size: 14px;
}

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

.nav-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sky);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.48);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: #dbeafe;
  font-size: 14px;
}

.dropdown-panel a:hover {
  background: rgba(14, 165, 233, 0.18);
  color: var(--sky);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 260px;
}

.nav-search input,
.search-page-form input,
.page-filter {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: rgba(15, 23, 42, 0.64);
  color: var(--text);
  padding: 11px 46px 11px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.search-page-form input:focus,
.page-filter:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
  background: rgba(15, 23, 42, 0.9);
}

.nav-search button {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(14, 165, 233, 0.22);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

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

.mobile-menu a {
  display: block;
  padding: 13px 20px;
  color: #dbeafe;
}

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0 16px 16px;
  gap: 8px;
}

.mobile-category-grid a {
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
}

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

.content-wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  height: 72vh;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.22)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 52%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - var(--max)) / 2));
  width: min(660px, calc(100% - 48px));
  transform: translateY(-46%);
}

.hero-kicker,
.detail-meta,
.card-tags,
.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-kicker span,
.year-pill,
.card-tags span,
.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: rgba(15, 23, 42, 0.55);
  color: #bae6fd;
  backdrop-filter: blur(10px);
}

.hero-kicker span {
  padding: 6px 12px;
  font-size: 14px;
}

.hero-content h1,
.hero-content h2 {
  margin: 16px 0 0;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-movie-title {
  max-width: 760px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  color: #f8fafc;
}

.hero-content p {
  max-width: 640px;
  margin: 18px 0 22px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span {
  padding: 5px 11px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 12px 28px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: white;
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.3);
}

.ghost-button {
  padding: 12px 24px;
  border: 1px solid var(--line-strong);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.46);
}

.text-button {
  padding: 12px 8px;
  color: var(--sky);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.36);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 50%;
  color: white;
  background: rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 18px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: #475569;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--sky);
}

.home-sections,
.inner-page .content-wrap,
.detail-wrap {
  padding: 56px 0;
}

.home-sections {
  display: grid;
  gap: 68px;
}

.content-section {
  position: relative;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(14, 165, 233, 0.72));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

.section-head h2,
.simple-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 26px;
  line-height: 1.2;
}

.section-link {
  color: var(--sky);
  font-size: 14px;
}

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

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

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.17);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.movie-card a:hover {
  border-color: rgba(56, 189, 248, 0.58);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 22px 46px rgba(14, 165, 233, 0.2);
  transform: translateY(-5px);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.05) 58%);
}

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

.movie-card a:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.year-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  font-size: 12px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.78);
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  border-radius: 50%;
  color: white;
  background: rgba(14, 165, 233, 0.78);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card a:hover .play-hover {
  opacity: 1;
  transform: scale(1);
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card a:hover h3 {
  color: var(--sky);
}

.movie-card p {
  display: -webkit-box;
  min-height: 40px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags span {
  padding: 2px 8px;
  color: var(--sky);
  font-size: 12px;
  background: rgba(14, 165, 233, 0.13);
}

.rank-section,
.glass-section,
.rank-panel,
.side-panel,
.detail-card {
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(30, 41, 59, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 50px rgba(2, 6, 23, 0.22);
}

.rank-section,
.glass-section {
  padding: 28px;
}

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

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.26);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.86);
  transform: translateX(4px);
}

.rank-number {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: white;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--blue));
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.22);
}

.rank-item img {
  flex: 0 0 58px;
  width: 58px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
}

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

.rank-info strong {
  display: block;
  overflow: hidden;
  color: #f8fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.category-card,
.category-overview-card a {
  display: block;
  position: relative;
  min-height: 198px;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.17);
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at 25% 20%, rgba(14, 165, 233, 0.2), transparent 42%),
    rgba(15, 23, 42, 0.62);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card a:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px rgba(14, 165, 233, 0.18);
  transform: translateY(-4px);
}

.category-card strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 20px;
}

.category-card p,
.category-overview-card p {
  margin: 0 0 14px;
  color: #aab8ca;
  font-size: 14px;
}

.category-samples,
.category-overview-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--sky);
  font-size: 13px;
  list-style: none;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.rail-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.filter-line {
  margin-bottom: 20px;
}

.filter-line .page-filter {
  max-width: 460px;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 72px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(14, 165, 233, 0.16);
  background:
    radial-gradient(circle at 18% 28%, rgba(14, 165, 233, 0.24), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.96));
}

.inner-hero h1 {
  max-width: 820px;
  margin: 8px 0 14px;
  color: #f8fafc;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.inner-hero p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.eyebrow {
  color: var(--sky);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.compact-actions {
  margin-top: 24px;
}

.sticky-filter {
  position: sticky;
  top: 84px;
  z-index: 20;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.76));
  backdrop-filter: blur(10px);
}

.rank-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.rank-panel h2 {
  margin: 0 0 16px;
}

.rank-list-large {
  display: grid;
  gap: 12px;
}

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

.search-page-form {
  display: flex;
  gap: 12px;
  width: min(100%, 680px);
  margin-top: 28px;
}

.search-page-form input {
  padding-right: 18px;
}

.search-status {
  margin-bottom: 22px;
  color: var(--muted);
}

.detail-wrap {
  padding-top: 32px;
}

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

.breadcrumb a:hover {
  color: var(--sky);
}

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

.detail-main-col {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 24px;
  background: black;
  box-shadow: 0 32px 70px rgba(2, 6, 23, 0.45);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.26), transparent 32%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.28));
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.player-play {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 46px rgba(14, 165, 233, 0.42);
  font-size: 32px;
}

.player-cover strong {
  font-size: 18px;
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.detail-heading h1 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.detail-heading p {
  margin: 0;
  color: #bae6fd;
  font-size: 17px;
}

.type-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 15px;
  color: white;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  font-weight: 800;
}

.detail-meta {
  color: #aab8ca;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(14, 165, 233, 0.14);
}

.detail-tags span {
  padding: 6px 11px;
  background: rgba(14, 165, 233, 0.13);
}

.detail-card {
  padding: 24px;
}

.detail-card h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #f8fafc;
}

.detail-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
}

.review-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(14, 165, 233, 0.1));
}

.detail-side {
  min-width: 0;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

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

.side-related {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-related:hover {
  background: rgba(14, 165, 233, 0.12);
  transform: translateX(3px);
}

.side-related img {
  flex: 0 0 68px;
  width: 68px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}

.side-related span {
  min-width: 0;
}

.side-related strong {
  display: -webkit-box;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-related small {
  display: block;
  margin-top: 8px;
  color: #64748b;
}

.more-related {
  margin-top: 42px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.96));
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 36px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 520px);
  gap: 32px;
}

.footer-inner p {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--muted);
}

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

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

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

.footer-bottom {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(14, 165, 233, 0.12);
  color: #64748b;
  font-size: 14px;
}

.is-filtered-out {
  display: none;
}

@media (max-width: 1100px) {
  .movie-grid,
  .medium-grid,
  .category-list,
  .search-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .nav-search {
    width: 220px;
  }

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

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

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

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

  body.menu-open .mobile-menu {
    display: block;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .hero-carousel {
    min-height: 620px;
    height: auto;
  }

  .hero-content {
    top: 52%;
  }

  .hero-control {
    display: none;
  }

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

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

  .movie-grid,
  .featured-grid,
  .medium-grid,
  .category-list,
  .search-results,
  .category-grid,
  .category-overview-grid,
  .detail-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .content-wrap,
  .nav-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, var(--max));
  }

  .site-logo,
  .footer-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero-carousel {
    min-height: 650px;
  }

  .hero-content {
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-movie-title {
    font-size: 28px;
  }

  .hero-content p,
  .inner-hero p {
    font-size: 16px;
  }

  .movie-grid,
  .featured-grid,
  .medium-grid,
  .category-list,
  .search-results,
  .category-grid,
  .category-overview-grid,
  .detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .rank-section,
  .glass-section,
  .detail-card,
  .rank-panel,
  .side-panel {
    border-radius: 20px;
    padding: 18px;
  }

  .rank-item {
    align-items: flex-start;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 18px;
  }

  .rail-card {
    flex-basis: 180px;
  }

  .inner-hero {
    min-height: 280px;
    padding: 48px 20px;
  }

  .search-page-form,
  .detail-heading {
    flex-direction: column;
  }

  .player-play {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 420px) {
  .movie-card-body {
    padding: 11px;
  }

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

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

  .card-tags span {
    font-size: 11px;
  }
}
