* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #020617;
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 8%, rgba(8, 145, 178, 0.22), transparent 34%),
    radial-gradient(circle at 78% 4%, rgba(88, 28, 135, 0.24), transparent 32%),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.9), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(30, 64, 175, 0.45);
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text,
.footer-brand span:last-child {
  font-size: 23px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.94), rgba(59, 130, 246, 0.82)),
    #0891b2;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.45);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  border-left: 11px solid #ffffff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.brand-mark.small {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.brand-mark.small::after {
  left: 10px;
  top: 7px;
  border-left-width: 9px;
  border-top-width: 6px;
  border-bottom-width: 6px;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #22d3ee;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 310px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  overflow: visible;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: #f8fafc;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.header-search button,
.mobile-search button,
.big-search button,
.filter-panel select {
  border: 0;
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-btn,
.ghost-btn {
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  margin-right: 4px;
  padding: 8px 14px;
  color: white;
  background: #0891b2;
}

.quick-results {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 90vw);
  padding: 10px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.quick-results.show {
  display: grid;
  gap: 8px;
}

.quick-result-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.48);
}

.quick-result-item:hover {
  background: rgba(8, 145, 178, 0.18);
}

.quick-result-item img {
  width: 46px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.quick-result-item strong,
.quick-result-item small {
  display: block;
}

.quick-result-item small {
  color: #94a3b8;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding: 16px 0;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-search input {
  padding: 10px;
}

.mobile-search button,
.big-search button {
  padding: 10px 18px;
  color: #ffffff;
  background: #0891b2;
}

.hero {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(2, 6, 23, 0.12) 100%),
    linear-gradient(0deg, #020617 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding-top: clamp(88px, 16vh, 150px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.wide-meta span,
.hero-category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 780px;
  margin: 20px 0 14px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.44);
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 30px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 20px 42px rgba(8, 145, 178, 0.32);
}

.ghost-btn {
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 4;
  width: min(920px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.hero-search-panel form,
.big-search {
  display: flex;
  gap: 10px;
}

.hero-search-panel input,
.big-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: 0;
  background: rgba(2, 6, 23, 0.64);
}

.hero-search-panel button {
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #0891b2;
  font-weight: 800;
  cursor: pointer;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-category-links a:hover {
  color: white;
  background: rgba(8, 145, 178, 0.34);
}

.hero-dots {
  position: absolute;
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 128px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 34px;
  background: #22d3ee;
}

.content-section {
  padding: 58px 0;
}

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

.section-heading span,
.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: #22d3ee;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.week-panel h2,
.page-hero h1,
.player-section h2,
.detail-text h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-more,
.text-link {
  color: #22d3ee;
  font-weight: 800;
}

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

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

.movie-card,
.wide-card,
.category-overview-card,
.search-card {
  border: 1px solid rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(12px);
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 28px 80px rgba(8, 145, 178, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.68);
}

.poster-wrap img,
.category-card img,
.wide-poster img,
.top-card img,
.detail-poster img,
.category-preview img,
.search-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-wrap img,
.category-card img,
.wide-poster img {
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.wide-card:hover .wide-poster img {
  transform: scale(1.1);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.8));
}

.card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #020617;
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: white;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.84);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3,
.wide-card h3,
.search-card h2,
.category-overview-card h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover,
.search-card h2 a:hover,
.category-overview-card h2 a:hover {
  color: #22d3ee;
}

.movie-meta,
.wide-card p,
.movie-desc,
.page-hero p,
.detail-one-line,
.detail-text p,
.search-card p,
.category-overview-card p,
.category-card p,
.week-panel p {
  color: #94a3b8;
}

.movie-meta {
  margin: 0 0 10px;
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

.glass-section {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  padding: 34px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(88, 28, 135, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 90px rgba(0, 0, 0, 0.22);
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.9) 72%);
}

.category-card strong,
.category-card p {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-card strong {
  bottom: 58px;
  color: white;
  font-size: 20px;
}

.category-card p {
  bottom: 18px;
  margin: 0;
  font-size: 13px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 32px;
}

.rank-list,
.week-list {
  display: grid;
  gap: 16px;
}

.wide-card {
  display: grid;
  grid-template-columns: 142px 1fr;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.wide-card:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.34);
}

.wide-poster {
  position: relative;
  min-height: 170px;
  overflow: hidden;
}

.rank-no {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #020617;
  background: #facc15;
  font-weight: 900;
}

.wide-info {
  padding: 18px;
}

.wide-card p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.wide-meta span {
  min-height: 24px;
  font-size: 12px;
}

.week-panel {
  padding: 26px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(49, 46, 129, 0.32), rgba(88, 28, 135, 0.24));
}

.week-panel h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

.page-main {
  padding-bottom: 70px;
}

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

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-preview img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-top: 26px;
}

.filter-panel input,
.filter-panel select {
  padding: 14px 16px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
}

.filter-panel select option {
  color: #0f172a;
}

.top-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.top-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.68);
}

.top-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(2, 6, 23, 0.92));
}

.top-card span,
.top-card div {
  position: absolute;
  z-index: 2;
}

.top-card span {
  top: 16px;
  left: 16px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  color: #020617;
  background: #facc15;
  font-size: 22px;
  font-weight: 900;
}

.top-card div {
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.top-card strong {
  display: block;
  color: white;
  font-size: 24px;
}

.top-card p {
  margin: 8px 0 0;
  color: #cbd5e1;
}

.full-rank .wide-card {
  grid-template-columns: 120px 1fr;
}

.search-hero,
.category-detail-hero {
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.big-search {
  max-width: 780px;
  margin-top: 26px;
}

.search-result-grid {
  display: grid;
  gap: 18px;
}

.search-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
}

.search-card img {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

.detail-hero {
  padding-top: 42px;
}

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

.breadcrumb a:hover {
  color: #22d3ee;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  padding: 26px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.28), rgba(88, 28, 135, 0.2)),
    rgba(15, 23, 42, 0.62);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
}

.detail-info h1 {
  margin: 0 0 16px;
  color: white;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: 18px;
}

.tag-row.large {
  margin-bottom: 26px;
}

.player-section {
  padding-top: 54px;
}

.player-section h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 38px);
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.44);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

.player-box.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.player-pulse {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.9);
  box-shadow: 0 0 0 16px rgba(34, 211, 238, 0.12), 0 24px 60px rgba(0, 0, 0, 0.42);
  font-size: 38px;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 42px;
}

.detail-text article {
  padding: 26px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.detail-text h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.detail-text p {
  margin: 0;
  font-size: 16px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(30, 64, 175, 0.3);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), #000000);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 34px 0;
  display: grid;
  justify-items: center;
  gap: 16px;
  color: #64748b;
  text-align: center;
}

.footer-brand span:last-child {
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-links a:hover {
  color: #22d3ee;
}

[hidden] {
  display: none !important;
}

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

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

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

  .split-layout,
  .detail-text,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    gap: 14px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-content {
    padding-top: 76px;
  }

  .hero-search-panel {
    bottom: 28px;
  }

  .hero-search-panel form,
  .big-search,
  .filter-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 158px;
  }

  .movie-grid,
  .small-grid,
  .catalog-grid,
  .category-grid,
  .top-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .movie-grid,
  .small-grid,
  .catalog-grid,
  .category-grid,
  .top-three {
    grid-template-columns: 1fr;
  }

  .wide-card,
  .full-rank .wide-card,
  .search-card,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    aspect-ratio: 16 / 9;
  }

  .category-card {
    min-height: 260px;
  }

  .glass-section {
    padding: 22px;
  }

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

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

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