:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #38bdf8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 32%), linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  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 var(--line);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(37, 99, 235, 0.9));
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.36);
}

.brand-mark span {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--white);
  transform: translate(-40%, -50%);
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  position: relative;
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.24s ease;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.24s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 8px;
  padding: 14px 0 18px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
}

.hero {
  position: relative;
  min-height: 78vh;
  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-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 34%, rgba(2, 6, 23, 0.24) 100%), linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.48) 44%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: 86px;
}

.hero-copy {
  width: min(680px, 100%);
}

.hero-kicker,
.page-hero span,
.section-head span,
.quick-search-card span,
.spotlight-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.28);
  font-weight: 700;
  font-size: 13px;
}

.hero h1 {
  margin: 18px 0 16px;
  color: var(--white);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

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

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

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  padding: 5px 10px;
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 20px 48px rgba(6, 182, 212, 0.38);
}

.btn-soft {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.full-btn {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.42);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

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

.quick-search {
  position: relative;
  z-index: 20;
  margin-top: -38px;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-card h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.quick-search-form {
  display: flex;
  gap: 12px;
}

.quick-search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
  outline: none;
}

.quick-search-form input {
  min-height: 54px;
  padding: 0 18px;
}

.quick-search-form button {
  min-width: 112px;
  border: 0;
  border-radius: 16px;
  background: var(--cyan);
  color: #082f49;
  font-weight: 900;
  cursor: pointer;
}

.section-block {
  padding: 72px 0;
}

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

.section-head h2 {
  margin: 12px 0 8px;
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.section-head > a,
.text-link {
  color: var(--cyan);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.94));
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.24);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 58%);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.88);
  color: var(--white);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.76);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta-line,
.card-foot,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta-line a,
.ranking-meta a {
  color: var(--cyan);
  font-weight: 800;
}

.movie-card h3 {
  min-height: 2.6em;
  margin: 10px 0 8px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.3;
}

.compact-grid .movie-card h3,
.all-grid .movie-card h3 {
  font-size: 16px;
}

.movie-card p {
  min-height: 3.9em;
  margin: 0 0 12px;
  color: #a8b3c7;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  min-height: 27px;
  margin-bottom: 12px;
}

.card-foot {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.rank-band {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.25));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.36);
}

.rank-num {
  color: var(--cyan);
  font-size: 22px;
  font-weight: 900;
}

.rank-item img {
  width: 76px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rank-copy strong {
  overflow: hidden;
  color: var(--white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item b {
  color: #a5f3fc;
  font-size: 13px;
}

.spotlight-card,
.detail-side,
.detail-article,
.category-card,
.quick-search-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.spotlight-card {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding: 28px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.spotlight-card h2 {
  margin: 18px 0 14px;
  color: var(--white);
  font-size: 28px;
}

.spotlight-card p {
  color: var(--muted);
}

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

.category-tile,
.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
}

.category-tile {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.category-tile img,
.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.5s ease;
}

.category-tile:hover img,
.category-cover:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 72%);
  content: "";
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  color: var(--white);
  font-size: 22px;
}

.category-tile em {
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 16% 20%, rgba(34, 211, 238, 0.2), transparent 32%), linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.page-hero h1 {
  max-width: 900px;
  margin: 14px 0 12px;
  color: var(--white);
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 800px;
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
}

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

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

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

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-radius: 26px;
}

.category-cover {
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.category-cover span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

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

.category-card-body h2 {
  margin: 0 0 10px;
  color: var(--white);
}

.category-card-body p,
.category-card-body li {
  color: var(--muted);
}

.category-card-body ul {
  display: grid;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 0.25fr));
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.search-field {
  position: relative;
}

.search-field span {
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  transform: translateY(-50%);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 14px;
}

.filter-bar input {
  padding-left: 58px;
}

.empty-state {
  margin: 30px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  text-align: center;
}

.ranking-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: #0f172a;
}

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

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.9);
  color: #083344;
  font-size: 12px;
  font-weight: 900;
}

.ranking-card h2 {
  margin: 8px 0 8px;
  color: var(--white);
  font-size: 22px;
}

.ranking-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.ranking-meta strong {
  color: #a5f3fc;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
  background: #020617;
}

.detail-bg,
.detail-bg-mask {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px);
  opacity: 0.32;
  transform: scale(1.06);
}

.detail-bg-mask {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.78) 50%, rgba(2, 6, 23, 0.82) 100%);
}

.detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 18px 0 14px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 850px;
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span,
.detail-meta strong {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
}

.detail-meta strong {
  color: var(--cyan);
}

.player-section {
  padding: 46px 0 20px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.28));
  color: var(--white);
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.34);
  font-size: 30px;
}

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

.player-overlay.is-hidden {
  display: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.detail-article,
.detail-side {
  border-radius: 26px;
  padding: 26px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 26px;
}

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

.detail-side dl {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.detail-side dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-side dt {
  color: var(--muted);
}

.detail-side dd {
  margin: 0;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 42px 0 28px;
}

.footer-grid p {
  max-width: 620px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

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

  .category-card-grid,
  .rank-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card {
    position: static;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    height: 68px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy em {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 72vh;
  }

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

  .hero-arrow {
    display: none;
  }

  .quick-search-card,
  .quick-search-form,
  .filter-bar,
  .detail-layout,
  .category-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-search-form {
    display: grid;
  }

  .filter-bar {
    gap: 10px;
  }

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

  .section-block {
    padding: 52px 0;
  }

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

  .detail-layout {
    align-items: start;
  }

  .detail-poster {
    width: min(230px, 68vw);
  }

  .footer-bottom,
  .footer-links {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

  .movie-grid,
  .compact-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item b {
    display: none;
  }

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

  .player-overlay span {
    width: 66px;
    height: 66px;
  }
}
