:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c32;
  --panel-card: #172033;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --green: #34d399;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 6%, rgba(34, 211, 238, 0.16), transparent 26rem),
    radial-gradient(circle at 82% 0%, rgba(59, 130, 246, 0.18), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #08111f 46%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #07111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.26);
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, #67e8f9, #60a5fa, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search-panel form,
.page-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search-panel input,
.page-search input,
.page-search select {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 11px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search-panel input:focus,
.page-search input:focus,
.page-search select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

.header-search button,
.mobile-search button,
.hero-search-panel button,
.page-search button,
.primary-btn,
.ghost-btn,
.outline-btn,
.section-more {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.hero-search-panel button,
.primary-btn {
  color: #06111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(34, 211, 238, 0.22);
}

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

.header-search button:hover,
.mobile-search button:hover,
.hero-search-panel button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.outline-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

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

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

.mobile-search {
  margin-bottom: 14px;
}

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

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

.mobile-panel nav,
.mobile-cats {
  display: grid;
  gap: 10px;
}

.mobile-link,
.mobile-cats a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-link.active,
.mobile-link:hover,
.mobile-cats a:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.4);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 640px;
  margin: 26px auto 34px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  min-height: 640px;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 52%, rgba(34, 211, 238, 0.2), transparent 20rem),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.56) 78%, rgba(2, 6, 23, 0.94) 100%);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 78px);
}

.hero-desc {
  max-width: 700px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

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

.hero-meta {
  margin: 20px 0 0;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 12px;
  font-weight: 700;
}

.card-meta span {
  padding: 5px 9px;
  font-size: 12px;
}

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

.hero-tags {
  margin: 18px 0 0;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.hero-tags span,
.detail-tags a {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.outline-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn,
.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
}

.ghost-btn,
.outline-btn,
.section-more {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.hero-poster {
  align-self: stretch;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: perspective(900px) rotateY(-7deg);
}

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

.hero-controls {
  position: absolute;
  left: 70px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.74);
  cursor: pointer;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  background: rgba(226, 232, 240, 0.42);
}

.hero-dots button.active {
  width: 30px;
  background: var(--cyan);
}

.hero-search-panel {
  position: absolute;
  right: 36px;
  bottom: 26px;
  z-index: 5;
  width: min(460px, calc(100% - 72px));
  padding: 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(16px);
}

.hero-search-panel input {
  flex: 1;
  padding: 14px 18px;
}

.hero-search-panel button {
  padding: 14px 20px;
}

.section-block {
  margin: 34px 0;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.28);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more,
.outline-btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 26px 60px rgba(2, 6, 23, 0.42);
}

.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.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.04);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.76));
}

.year-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.year-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #06233c;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--cyan);
}

.card-meta {
  margin: 10px 0;
}

.card-summary {
  display: -webkit-box;
  min-height: 72px;
  margin: 0 0 14px;
  color: #a8b5c7;
  line-height: 1.55;
  font-size: 14px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-summary.compact {
  min-height: 44px;
  -webkit-line-clamp: 2;
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-large {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 14rem),
    linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

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

.category-tile {
  min-height: 190px;
  padding: 22px;
}

.category-tile strong,
.category-large h2 {
  display: block;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-tile p,
.category-large p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile em,
.category-large em {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-style: normal;
}

.category-tile em span,
.category-large em span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 10px;
  color: #bfdbfe;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
}

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

.category-large {
  min-height: 250px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 30px;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.34);
}

.rank-card img {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.rank-index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #06111d;
  background: linear-gradient(135deg, #fef08a, #22d3ee);
  font-size: 12px;
  font-weight: 900;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  display: -webkit-box;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-info em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  margin: 28px 0 34px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  align-items: end;
  gap: 28px;
  padding: 46px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 24rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.92));
}

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

.page-hero h1 {
  font-size: clamp(36px, 6vw, 62px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 18px;
}

.page-search {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.page-search input,
.page-search select {
  min-height: 48px;
  padding: 0 18px;
}

.page-search input {
  flex: 1 1 260px;
}

.page-search select {
  flex: 0 0 160px;
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-strip button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.64);
  cursor: pointer;
}

.filter-strip button.active,
.filter-strip button:hover {
  color: #06111d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.empty-state {
  margin: 22px 0 0;
  padding: 20px;
  text-align: center;
  color: #cbd5e1;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.leader-row {
  display: grid;
  grid-template-columns: 86px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.leader-poster img {
  width: 86px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.leader-number {
  color: transparent;
  font-size: 34px;
  font-weight: 1000;
  background: linear-gradient(135deg, #fef08a, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
}

.leader-title {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.leader-title:hover {
  color: var(--cyan);
}

.leader-content p {
  display: -webkit-box;
  margin: 8px 0 10px;
  color: var(--muted);
  line-height: 1.6;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  padding: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 18%, rgba(34, 211, 238, 0.18), transparent 22rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.88));
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.46);
}

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

.detail-info {
  align-self: center;
}

.detail-info h1 {
  font-size: clamp(36px, 6vw, 62px);
}

.detail-one-line {
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta,
.detail-tags {
  margin-top: 18px;
}

.detail-info .primary-btn {
  margin-top: 28px;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.42);
}

.video-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.14), transparent 22rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.64));
  cursor: pointer;
}

.video-player.is-playing .player-overlay {
  display: none;
  pointer-events: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #06111d;
  font-size: 34px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 45px rgba(34, 211, 238, 0.35);
}

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

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.text-panel {
  padding: 26px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.text-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.text-panel p {
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.9;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.78);
}

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

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

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

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

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

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

[hidden] {
  display: none !important;
}

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 48px;
  }

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero,
  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 34px;
  }

  .hero-poster {
    width: min(280px, 80%);
    min-height: 350px;
    justify-self: center;
    transform: none;
  }

  .hero-controls {
    left: 28px;
    bottom: 92px;
  }

  .hero-search-panel {
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: auto;
  }

  .page-hero,
  .detail-hero {
    grid-template-columns: 1fr;
    padding: 30px;
  }

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

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

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

  .leader-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .leader-number {
    display: none;
  }

  .leader-poster img {
    width: 74px;
    height: 104px;
  }

  .leader-row .outline-btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  main,
  .header-inner,
  .mobile-panel,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 20px;
  }

  .hero,
  .hero-slider {
    min-height: 720px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-desc,
  .detail-one-line,
  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-search-panel form,
  .page-search,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
  }

  .hero-search-panel {
    border-radius: 24px;
  }

  .hero-search-panel input,
  .hero-search-panel button,
  .page-search input,
  .page-search select,
  .mobile-search input,
  .mobile-search button {
    width: 100%;
  }

  .section-block {
    padding: 20px;
    border-radius: 20px;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-title {
    min-height: 44px;
    font-size: 15px;
  }

  .card-summary {
    min-height: 42px;
    -webkit-line-clamp: 2;
  }

  .card-meta span,
  .tag-row span {
    font-size: 11px;
  }

  .category-tile,
  .category-large,
  .text-panel {
    padding: 20px;
  }

  .page-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .detail-hero {
    padding: 20px;
    gap: 22px;
  }

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

  .rank-card img {
    width: 70px;
    height: 98px;
  }
}

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