:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #10b981;
  --orange: #f97316;
  --rose: #f43f5e;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.46);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 4%, rgba(59, 130, 246, 0.14), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 310px) auto;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.28);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.07) rotate(-3deg);
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.38);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.brand.mini .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 13px;
  font-weight: 650;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.72);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
}

.header-search input,
.hero-search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: rgba(2, 6, 23, 0.52);
  border-radius: 999px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.hero-search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(2, 6, 23, 0.72);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  z-index: 120;
}

.search-results.is-open {
  display: block;
}

.search-results a {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.search-results a:hover {
  background: rgba(51, 65, 85, 0.62);
}

.search-results strong {
  font-size: 0.95rem;
}

.search-results small {
  color: var(--muted);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
}

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

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

.mobile-link {
  padding: 13px 16px;
  background: rgba(15, 23, 42, 0.62);
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.86) 48%, rgba(15, 23, 42, 0.18)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.05) 44%, rgba(2, 6, 23, 0.74));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  padding: 96px 0 110px;
}

.eyebrow,
.section-kicker {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.12);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(2.7rem, 8vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 56px rgba(0, 0, 0, 0.36);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.72;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.62);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.25);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.primary-button:hover {
  box-shadow: 0 22px 54px rgba(34, 211, 238, 0.36);
}

.ghost-button {
  color: #e2e8f0;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.62);
}

.ghost-button:hover {
  background: rgba(51, 65, 85, 0.7);
}

.ghost-button.small {
  min-height: 40px;
  padding: 0 17px;
  font-size: 0.9rem;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.hero-search-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  z-index: 5;
  width: min(360px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search-panel strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.hero-search-panel span {
  display: block;
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.hero-results {
  top: auto;
  bottom: calc(100% + 10px);
}

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

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.section-heading a,
.panel-title a,
.detail-neighbor a {
  color: var(--cyan);
  font-weight: 750;
}

.compact-heading {
  margin-bottom: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.84));
  box-shadow: 0 18px 58px rgba(2, 6, 23, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(8, 47, 73, 0.62));
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.04);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.62), transparent 46%);
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(34, 211, 238, 0.86);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.28);
}

.poster-play {
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 9px;
}

.movie-meta-line a {
  color: var(--cyan);
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.32;
}

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

.movie-card p {
  min-height: 4.5em;
  margin: 0 0 14px;
  color: var(--muted-strong);
  line-height: 1.5;
  font-size: 0.93rem;
}

.movie-card.compact p {
  min-height: 3em;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 0.78rem;
}

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

.category-card,
.category-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.62));
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.2);
}

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 26px;
  padding: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card::before,
.category-section::before,
.inner-hero::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -100px;
  right: -80px;
  border-radius: 999px;
  opacity: 0.22;
  background: var(--cyan);
  filter: blur(4px);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.52);
}

.category-card span {
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 10px;
}

.category-card strong {
  margin-bottom: 10px;
  line-height: 1.4;
}

.category-card p,
.category-section p,
.inner-hero p {
  color: var(--muted-strong);
  line-height: 1.65;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.ranking-panel,
.player-card,
.detail-article,
.category-section,
.filter-bar {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.2);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 850;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 44px 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.48);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
  background: rgba(51, 65, 85, 0.66);
  transform: translateX(3px);
}

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

.rank-thumb {
  width: 54px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
}

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

.rank-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info small,
.rank-heat {
  color: var(--muted);
}

.rank-heat {
  font-size: 0.86rem;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  padding: clamp(34px, 7vw, 76px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.72)),
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.2), transparent 24rem);
  box-shadow: var(--shadow);
}

.inner-hero h1 {
  position: relative;
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.inner-hero p {
  position: relative;
  max-width: 760px;
  margin: 0;
  font-size: 1.06rem;
}

.category-page-list {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
  display: grid;
  gap: 28px;
}

.category-section {
  padding: 28px;
}

.category-section-head {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.category-section h2 {
  margin: 10px 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 18px;
  margin-bottom: 26px;
}

.filter-search {
  display: grid;
  gap: 9px;
  color: var(--muted-strong);
  font-weight: 750;
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.filter-bar select {
  min-width: 140px;
  appearance: none;
}

.movie-card.is-hidden {
  display: none;
}

.ranking-full {
  padding-top: 22px;
}

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

.detail-hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 68vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 320px) 1fr;
  gap: clamp(28px, 6vw, 58px);
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

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

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

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 760px;
  color: var(--muted-strong);
  font-size: 1.15rem;
  line-height: 1.72;
}

.detail-meta {
  margin: 22px 0 14px;
}

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

.detail-layout {
  display: grid;
  gap: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.52));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-play span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.38);
  font-size: 2rem;
}

.player-card.is-playing .video-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-title {
  padding: 22px 24px 26px;
}

.player-title h2,
.detail-article h2 {
  margin: 0 0 10px;
}

.player-title p,
.detail-article p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.75;
}

.detail-article {
  padding: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 26px;
}

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

.detail-neighbor a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

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

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

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

.footer-column h3 {
  margin: 0 0 8px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.92rem;
}

.accent-cyan::before { background: #22d3ee; }
.accent-blue::before { background: #3b82f6; }
.accent-violet::before { background: #8b5cf6; }
.accent-emerald::before { background: #10b981; }
.accent-rose::before { background: #f43f5e; }
.accent-orange::before { background: #f97316; }
.accent-amber::before { background: #f59e0b; }
.accent-indigo::before { background: #6366f1; }
.accent-teal::before { background: #14b8a6; }
.accent-slate::before { background: #64748b; }

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .header-search {
    justify-self: end;
    width: min(340px, 44vw);
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

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

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

  .two-column-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    min-height: 66px;
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .header-search {
    grid-column: 1 / -1;
    width: 100%;
    order: 3;
    padding-bottom: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    justify-content: start;
    padding-top: 96px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(2.4rem, 15vw, 4.4rem);
  }

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

  .hero-control {
    display: none;
  }

  .section-wrap {
    padding: 46px 0;
  }

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

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

  .movie-card {
    border-radius: 20px;
  }

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

  .movie-card p {
    min-height: 0;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    flex-direction: column;
  }

  .detail-inner {
    grid-template-columns: 1fr;
    padding: 36px 0 48px;
  }

  .detail-poster {
    width: min(280px, 74vw);
    margin: 0 auto;
  }

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

  .rank-item a {
    grid-template-columns: 36px 48px 1fr;
  }

  .rank-heat {
    display: none;
  }
}

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

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
