:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #07111f;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(2, 6, 23, 0.92);
  --line: rgba(34, 211, 238, 0.22);
  --line-strong: rgba(34, 211, 238, 0.48);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-deep: #06b6d4;
  --blue: #3b82f6;
  --green: #22c55e;
  --yellow: #eab308;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(6, 182, 212, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.16), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #030712 58%, #000000 100%);
  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.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.42);
}

.logo-text {
  font-size: 1.15rem;
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  color: #cbd5e1;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.09);
}

.header-search {
  width: 280px;
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.28);
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 14px;
  padding: 10px 14px;
  transition: 0.22s ease;
}

.header-search input:focus,
.mobile-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

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

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

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mobile-links a {
  padding: 11px 14px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-carousel {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.2;
  background-image:
    radial-gradient(circle, rgba(34, 211, 238, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 36px 36px, 90px 90px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  z-index: 2;
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  animation: floatOrb 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-orb-a {
  top: 6%;
  left: -10%;
  background: var(--cyan-deep);
}

.hero-orb-b {
  right: -10%;
  bottom: 0;
  background: var(--blue);
  animation-delay: 1.5s;
}

@keyframes floatOrb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5%, -4%, 0) scale(1.08);
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.78) 46%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.24) 38%, rgba(2, 6, 23, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 54px;
  padding: 72px 0 108px;
}

.hero-pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  background: linear-gradient(90deg, #ffffff, var(--cyan), #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.32rem);
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 850;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.28);
}

.ghost-button,
.section-link {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid var(--line-strong);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.22);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.72));
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.18));
}

.hero-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  transition: 0.22s ease;
}

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

.hero-stats {
  position: absolute;
  z-index: 6;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 28px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  min-width: 118px;
  padding: 14px 18px;
  text-align: center;
  border-left: 1px solid rgba(34, 211, 238, 0.16);
}

.hero-stats div:first-child {
  border-left: 0;
}

.hero-stats strong {
  display: block;
  color: var(--cyan);
  font-size: 1.35rem;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--muted);
}

.small-heading {
  align-items: start;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-chip {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.42));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: 0.24s ease;
}

.category-chip::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
}

.category-chip strong,
.category-chip span {
  position: relative;
  z-index: 1;
  display: block;
}

.category-chip strong {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.category-chip span {
  color: var(--cyan);
}

.category-chip:hover,
.movie-card:hover,
.rank-row:hover,
.category-overview-card:hover,
.rank-card:hover,
.info-card:hover,
.text-panel:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  transition: 0.24s ease;
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.18));
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.06);
  filter: saturate(1.16) brightness(1.04);
}

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

.movie-rank,
.play-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-rank {
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  color: #00111a;
  background: var(--cyan);
}

.play-float {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

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

.movie-badges,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.movie-badges span,
.detail-tags a {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  font-size: 0.75rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card h3 {
  min-height: 3.15em;
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.45;
}

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

.movie-line {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.76rem;
}

.movie-meta span {
  padding: 3px 7px;
}

.movie-tags {
  color: var(--muted-2);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.ranking-panel,
.rank-card,
.info-card,
.text-panel,
.player-panel,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  transition: 0.24s ease;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  transition: 0.22s ease;
}

.rank-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 0.82rem;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
}

.rank-row strong,
.rank-row em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px max(16px, calc((100vw - 1240px) / 2)) 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.95));
}

.slim-hero h1,
.category-hero h1 {
  max-width: 960px;
}

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

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

.category-main-link {
  display: block;
  margin-bottom: 18px;
}

.category-main-link h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.category-main-link p {
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-samples a {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.category-samples img {
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.category-samples span {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 8px 8px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.9));
  font-size: 0.78rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-status {
  margin: -8px 0 18px;
  color: var(--cyan);
}

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

.rank-card {
  padding: 20px;
}

.long-rank-list {
  max-height: none;
}

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--line);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.25;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7)),
    linear-gradient(0deg, #020617, transparent 52%, #020617);
}

.detail-content {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(34, 211, 238, 0.12);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 840px;
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 1.12rem;
}

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

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

.detail-main {
  display: grid;
  gap: 20px;
}

.player-panel {
  padding: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: var(--text);
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.26), transparent 24rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.86));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.5);
}

.player-start strong {
  font-size: 1.25rem;
}

.player-start em {
  color: var(--muted);
  font-style: normal;
}

.player-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.text-panel,
.info-card {
  padding: 24px;
}

.text-panel h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.text-panel p {
  margin: 0;
  color: #dbeafe;
}

.detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

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

.info-card dd {
  margin: 0;
  min-width: 0;
}

.mini-rank-list .rank-row {
  grid-template-columns: auto 48px minmax(0, 1fr);
}

.mini-rank-list .rank-row img {
  width: 48px;
  height: 48px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.12), transparent 24rem),
    rgba(2, 6, 23, 0.88);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 26px;
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 9px;
  color: var(--muted);
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-hidden {
  display: none !important;
}

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

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

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-content,
  .detail-content,
  .detail-layout,
  .two-column-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 28px;
    padding-top: 44px;
  }

  .hero-poster {
    width: min(300px, 76vw);
    transform: none;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(620px, calc(100% - 32px));
    margin: 0 auto 76px;
  }

  .hero-arrow {
    display: none;
  }

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }

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

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
  }

  .logo-text {
    font-size: 1rem;
  }

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

  .hero-slide {
    position: relative;
    min-height: 760px;
  }

  .hero-slide:not(.active) {
    display: none;
  }

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

  .hero-copy h1,
  .page-hero h1 {
    letter-spacing: -0.05em;
  }

  .hero-stats {
    display: none;
  }

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

  .section-heading {
    display: block;
  }

  .section-link {
    margin-top: 16px;
  }

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

  .category-strip,
  .category-overview-grid,
  .category-samples {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding: 34px 0;
  }

  .detail-poster {
    width: min(250px, 72vw);
  }

  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .footer-bottom {
    display: block;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .all-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-dots {
    bottom: 18px;
  }

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

  .hero-meta span,
  .detail-meta span {
    font-size: 0.78rem;
  }
}
