:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-2: #06b6d4;
  --blue: #2563eb;
  --green: #10b981;
  --yellow: #facc15;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.36), 0 18px 45px rgba(6, 182, 212, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.12), transparent 34rem),
    var(--bg);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 70vh;
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 26px rgba(6, 182, 212, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

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

.desktop-nav a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-search {
  display: flex;
  width: min(320px, 28vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.nav-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 10px 14px;
}

.nav-search button {
  border: 0;
  color: #06121f;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 20px 16px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  padding: 12px 14px;
  color: #cbd5e1;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
}

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

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.8));
}

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

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-subtitle {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  height: min(80vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
}

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

.hero-image::before,
.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-image::before {
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 34%, rgba(2, 6, 23, 0.25) 72%, rgba(2, 6, 23, 0.62) 100%),
    radial-gradient(circle at 22% 48%, rgba(34, 211, 238, 0.22), transparent 32rem);
}

.hero-image::after {
  background: linear-gradient(0deg, #020617 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  height: 100%;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.14);
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-desc {
  max-width: 650px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span {
  display: inline-flex;
  padding: 7px 12px;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 16px 38px rgba(6, 182, 212, 0.27);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.64);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: 32px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-control {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  border-color: rgba(34, 211, 238, 0.55);
  transform: translateY(-2px);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: var(--glow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

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

.rating-pill,
.duration-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(8px);
}

.rating-pill {
  top: 10px;
  right: 10px;
  color: var(--yellow);
}

.duration-pill {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-card h3 a {
  transition: color 0.2s ease;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.86);
}

.rail-wrap {
  position: relative;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.movie-rail .movie-card {
  flex: 0 0 300px;
}

.rail-btn {
  position: absolute;
  top: 42%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.76);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rail-wrap:hover .rail-btn {
  opacity: 1;
}

.rail-btn:hover {
  border-color: rgba(34, 211, 238, 0.55);
  transform: translateY(-2px);
}

.rail-btn.prev {
  left: -12px;
}

.rail-btn.next {
  right: -12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.26), transparent 20rem);
  transition: opacity 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: var(--glow);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 15px;
  color: #04111d;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

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

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 22px;
}

.featured-big {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #0f172a;
}

.featured-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-big::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #020617 5%, rgba(2, 6, 23, 0.22));
}

.featured-copy {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 26px;
}

.featured-copy h3 {
  margin: 10px 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.featured-copy p {
  max-width: 720px;
  color: #cbd5e1;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.rank-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
}

.rank-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 8px;
}

.rank-panel-header h3 {
  margin: 0;
}

.rank-list {
  display: grid;
}

.rank-list-item {
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}

.rank-list-item:hover {
  background: rgba(30, 41, 59, 0.72);
}

.list-rank {
  color: var(--cyan);
  font-weight: 900;
  font-size: 1.05rem;
}

.rank-list-item img {
  width: 72px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  min-width: 0;
}

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

.rank-copy small {
  color: var(--muted);
}

.page-hero {
  padding: 78px 0 42px;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.14), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0));
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.breadcrumb a {
  color: #cbd5e1;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.75);
  padding: 0 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.filter-count {
  min-width: 90px;
  margin: 0 0 10px;
  color: var(--cyan);
  font-weight: 900;
  text-align: right;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 38px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
}

.pagination a:hover,
.pagination .current {
  color: #04111d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(1.05);
}

.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.88) 44%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, #020617 0%, transparent 50%);
}

.detail-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 54px;
}

.detail-copy h1 {
  max-width: 900px;
  margin: 14px 0 20px;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.detail-desc {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

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

.detail-poster {
  align-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

.player-section {
  padding: 54px 0 30px;
  background: linear-gradient(180deg, #020617, rgba(15, 23, 42, 0.86));
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 28px;
  background: black;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #04111d;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 18rem),
    rgba(2, 6, 23, 0.18);
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 24px 70px rgba(34, 211, 238, 0.32);
  font-size: 2rem;
  transition: transform 0.2s ease;
}

.player-overlay:hover span {
  transform: scale(1.06);
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  text-shadow: 0 2px 12px black;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  padding: 42px 0 76px;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
  padding: 26px;
}

.content-panel + .content-panel {
  margin-top: 20px;
}

.content-panel h2 {
  margin: 0 0 14px;
}

.content-panel p {
  color: #cbd5e1;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.info-list dd {
  margin: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud a,
.tag-cloud span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.86);
}

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

.search-app {
  min-height: 420px;
}

.search-toolbar {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.search-toolbar input,
.search-toolbar select {
  min-height: 48px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  outline: none;
  padding: 0 14px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.92);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 1.3rem;
  font-weight: 900;
}

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

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

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-cloud a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
}

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

.hidden-by-filter {
  display: none !important;
}

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

  .mobile-menu-button {
    display: flex;
  }

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

  .featured-layout,
  .detail-content,
  .detail-body,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 360px;
    align-self: start;
  }

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

  .filter-count {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1280px);
  }

  .header-inner {
    padding-inline: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel {
    height: 72vh;
    min-height: 520px;
  }

  .hero-image::before {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 58%, rgba(2, 6, 23, 0.2) 100%),
      radial-gradient(circle at center, rgba(34, 211, 238, 0.2), transparent 22rem);
  }

  .hero-content {
    align-content: end;
    padding-bottom: 88px;
  }

  .hero-controls {
    right: 16px;
    bottom: 22px;
  }

  .hero-dots {
    left: 20px;
    bottom: 40px;
    transform: none;
  }

  .section {
    padding: 52px 0;
  }

  .section-header {
    display: block;
  }

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

  .movie-rail .movie-card {
    flex-basis: 82vw;
  }

  .featured-big {
    min-height: 430px;
  }

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

  .detail-content {
    padding-top: 48px;
  }

  .detail-copy h1 {
    letter-spacing: -0.05em;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
    font-size: 1.55rem;
  }

  .rank-list-item {
    grid-template-columns: 36px 64px minmax(0, 1fr);
  }

  .footer-inner {
    padding: 34px 0;
  }
}
