* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-soft: rgba(34, 211, 238, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #001018;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.28);
}

.brand-text strong,
.footer-brand {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: #cbd5e1;
  font-size: 15px;
}

.desktop-nav a,
.nav-dropdown > button {
  padding: 9px 0;
  color: #cbd5e1;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown:hover > button {
  color: #fff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 188px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.dropdown-menu a:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--accent);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.header-search input,
.mobile-panel input,
.big-search input,
.filter-panel input,
.filter-panel select {
  color: #fff;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.22);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 12px;
  border-radius: 12px;
}

.header-search input:focus,
.mobile-panel input:focus,
.big-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.13);
}

.header-search button,
.mobile-panel button,
.big-search button {
  color: #041016;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 10px 14px;
}

.header-search button:hover,
.mobile-panel button:hover,
.big-search button:hover {
  background: #67e8f9;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
}

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

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-panel a {
  padding: 10px 12px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 12px;
}

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  padding: 12px;
  border-radius: 12px;
}

.mobile-panel button {
  padding: 12px 16px;
}

.hero {
  position: relative;
  min-height: 680px;
  height: 85vh;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.76) 34%, rgba(2, 6, 23, 0.15) 100%),
    linear-gradient(to right, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.42) 48%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  padding: 0 0 190px;
}

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

.hero-category,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-category {
  padding: 7px 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero h1 + h2 {
  margin-top: -6px;
  color: #e0f2fe;
  font-size: clamp(34px, 4.4vw, 58px);
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  color: #cbd5e1;
}

.hero-meta span {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

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

.primary-btn {
  color: #031018;
  background: var(--accent);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.24);
}

.ghost-btn {
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 38px;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-control:hover {
  color: var(--accent);
  background: rgba(15, 23, 42, 0.86);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 148px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

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

.hero-thumbs {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  transform: translateX(-50%);
}

.compact-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  transition: 0.2s ease;
}

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

.compact-card img {
  width: 76px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.compact-card span:last-child {
  min-width: 0;
}

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

.compact-card strong {
  font-size: 14px;
}

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

.compact-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #031018;
  background: var(--accent);
  border-radius: 10px;
  font-weight: 900;
}

.section {
  padding: 72px 0;
}

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

.section-heading p,
.page-hero p,
.rank-copy p,
.detail-side-content > p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.rank-copy h2,
.detail-content h2,
.info-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.center-heading {
  display: block;
  text-align: center;
}

.quick-search-panel {
  margin-top: -1px;
}

.big-search {
  display: flex;
  max-width: 820px;
  margin: 28px auto 18px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 15px;
}

.big-search button {
  padding: 0 26px;
  border-radius: 15px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.quick-tags a {
  padding: 8px 14px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: 0.2s ease;
}

.quick-tags a:hover {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.32);
}

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(34, 211, 238, 0.34);
  transform: translateY(-6px);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), transparent 55%);
  opacity: 0.82;
}

.duration-pill,
.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 800;
}

.duration-pill {
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.play-pill {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #041016;
  background: var(--accent);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  top: 10px;
  left: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #041016;
  background: var(--accent);
  font-style: normal;
}

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

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--accent);
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.movie-tags span,
.detail-tags span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.movie-meta a {
  color: var(--accent);
}

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

.large-card a {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: #0f172a;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.large-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.large-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.08));
}

.large-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}

.large-content strong,
.large-content em,
.large-content > span:last-child {
  display: block;
}

.large-content strong {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 26px;
  line-height: 1.12;
}

.large-content em {
  color: #cbd5e1;
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.large-content > span:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-section {
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.5), rgba(15, 23, 42, 0.88)),
    rgba(15, 23, 42, 0.48);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 42px;
  align-items: start;
}

.rank-copy {
  position: sticky;
  top: 100px;
}

.rank-copy span {
  display: block;
  margin: 18px 0 26px;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.rank-list .compact-card {
  grid-template-columns: 36px 84px 1fr;
}

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

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

.category-tile {
  overflow: hidden;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.44));
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  border-color: rgba(34, 211, 238, 0.38);
  transform: translateY(-4px);
}

.category-tile > a {
  display: block;
  padding: 22px;
}

.category-tile span {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  min-height: 72px;
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.category-tile em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.category-tile div {
  display: grid;
  gap: 1px;
  background: rgba(148, 163, 184, 0.08);
}

.category-tile div a {
  padding: 12px 22px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.7);
  font-size: 14px;
}

.category-tile div a:hover {
  color: var(--accent);
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 70px 0 26px;
}

.small-hero {
  min-height: 260px;
}

.page-hero span {
  display: block;
  max-width: 780px;
  margin-top: 18px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 170px 150px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.filter-panel input,
.filter-panel select {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.filter-empty,
.empty-state {
  display: none;
  padding: 36px;
  color: #cbd5e1;
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

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

.empty-state {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #cbd5e1;
}

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

.breadcrumb em {
  color: #fff;
  font-style: normal;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 30px 0 36px;
}

.player-panel,
.detail-side,
.detail-content,
.info-card {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2));
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #041016;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 22px 56px rgba(34, 211, 238, 0.24);
  font-size: 34px;
}

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

.detail-side img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0f172a;
}

.detail-side-content {
  padding: 22px;
}

.detail-side-content h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-side-content > p:last-child {
  margin: 14px 0 0;
  color: #cbd5e1;
  line-height: 1.75;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
}

.detail-content,
.info-card {
  padding: 28px;
}

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

.detail-content p {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.95;
}

.info-card {
  align-self: start;
  position: sticky;
  top: 92px;
}

.info-card dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.info-card dd {
  margin: 0;
  color: #fff;
  text-align: right;
}

.search-results:empty {
  display: none;
}

.site-footer {
  margin-top: 54px;
  padding: 54px 0 28px;
  background: rgba(2, 6, 23, 0.7);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

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

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

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 24px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .hero-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-thumbs .compact-card:nth-child(n + 4) {
    display: none;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    height: auto;
    min-height: 760px;
  }

  .hero-content {
    padding-bottom: 240px;
  }

  .hero-control {
    display: none;
  }

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

  .hero-thumbs .compact-card:nth-child(n + 2) {
    display: none;
  }

  .large-grid,
  .rank-layout,
  .detail-hero,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-copy,
  .info-card {
    position: static;
  }

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding-bottom: 210px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

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

  .section {
    padding: 50px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

  .big-search,
  .mobile-panel form {
    display: grid;
  }

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

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

  .category-grid,
  .category-grid.expanded {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-content,
  .info-card,
  .detail-side-content {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }
}
