:root {
  --night-950: #050d18;
  --night-900: #0a1929;
  --night-850: #102135;
  --night-800: #132943;
  --night-700: #1d3655;
  --night-400: #88a0ba;
  --night-300: #b4c1d2;
  --night-200: #dbe5f1;
  --night-100: #eef6ff;
  --ocean-700: #0369a1;
  --ocean-600: #0284c7;
  --ocean-500: #0ea5e9;
  --ocean-400: #38bdf8;
  --moon-600: #7c3aed;
  --moon-500: #a855f7;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 36rem),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.12), transparent 30rem),
    linear-gradient(180deg, var(--night-950), var(--night-900) 38%, var(--night-950));
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: linear-gradient(180deg, rgba(5, 13, 24, 0.86), rgba(5, 13, 24, 0.22));
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(10, 25, 41, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ocean-400), var(--ocean-700));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.26);
  transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

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

.brand-text span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--night-300);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--night-200);
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--ocean-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  width: 270px;
  display: flex;
  align-items: center;
  background: rgba(19, 41, 67, 0.72);
  border: 1px solid rgba(136, 160, 186, 0.18);
  border-radius: 14px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input {
  padding: 11px 8px 11px 14px;
}

.header-search button {
  border: 0;
  color: var(--night-200);
  background: transparent;
  width: 44px;
  height: 42px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(19, 41, 67, 0.8);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: rgba(10, 25, 41, 0.98);
  border-top: 1px solid rgba(136, 160, 186, 0.12);
}

.mobile-panel.is-open {
  display: block;
  animation: slideDown 0.22s ease both;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.mobile-search input,
.filter-bar input,
.filter-bar select {
  padding: 12px 14px;
  background: rgba(19, 41, 67, 0.88);
  border: 1px solid rgba(136, 160, 186, 0.18);
  border-radius: 14px;
}

.mobile-search button,
.primary-btn,
.ghost-btn,
.filter-bar button {
  border: 0;
  border-radius: 14px;
  color: var(--white);
  font-weight: 800;
}

.mobile-search button,
.primary-btn {
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-700));
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.24);
}

.mobile-search button {
  padding: 0 18px;
}

.page {
  padding-top: 96px;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 64px;
}

.hero-stage {
  min-height: 530px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--night-800);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(28px) scale(1.01);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(168, 85, 247, 0.22)),
    var(--night-800);
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.7s ease;
}

.hero-slide.is-active .hero-cover img {
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 24, 0.92), rgba(5, 13, 24, 0.46) 52%, rgba(5, 13, 24, 0.16)),
    linear-gradient(0deg, rgba(5, 13, 24, 0.9), transparent 58%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(28px, 7vw, 78px);
  width: min(650px, calc(100% - 48px));
}

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.detail-tags a {
  color: var(--night-200);
  background: rgba(19, 41, 67, 0.72);
  border: 1px solid rgba(136, 160, 186, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.hero-tags span:last-child,
.poster em {
  background: rgba(2, 132, 199, 0.82);
  color: var(--white);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 660px;
  color: var(--night-200);
  font-size: 17px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.ghost-btn {
  color: var(--night-100);
  border: 1px solid rgba(136, 160, 186, 0.24);
  background: rgba(19, 41, 67, 0.58);
}

.hero-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(10, 25, 41, 0.76);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  font-size: 32px;
  line-height: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-btn:hover {
  background: rgba(19, 41, 67, 0.96);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--ocean-400);
}

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

.hero-search-box {
  border-radius: var(--radius-lg);
  padding: 22px;
  min-height: 178px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(168, 85, 247, 0.16)),
    rgba(19, 41, 67, 0.68);
  border: 1px solid rgba(136, 160, 186, 0.16);
  box-shadow: var(--shadow);
}

.hero-search-box span,
.eyebrow,
.compact-hero span {
  color: var(--ocean-400);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero-search-box strong {
  display: block;
  margin: 10px 0 18px;
  font-size: 24px;
  line-height: 1.2;
}

.hero-search-box form {
  display: flex;
  gap: 8px;
}

.hero-search-box input {
  flex: 1;
  min-width: 0;
  color: var(--white);
  background: rgba(5, 13, 24, 0.55);
  border: 1px solid rgba(136, 160, 186, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  outline: 0;
}

.hero-search-box button {
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--ocean-600);
  padding: 0 16px;
  font-weight: 800;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-section,
.category-strip,
.rank-section,
.category-overview,
.detail-copy,
.player-section {
  margin: 0 0 62px;
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2,
.player-section h2,
.detail-copy h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--night-300);
}

.section-heading a {
  color: var(--ocean-400);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(19, 41, 67, 0.42);
  border: 1px solid rgba(136, 160, 186, 0.12);
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.movie-card a:hover {
  transform: translateY(-7px);
  background: rgba(19, 41, 67, 0.68);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(168, 85, 247, 0.2)),
    var(--night-800);
}

.poster-wide {
  aspect-ratio: 16 / 9;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.3s ease;
}

.movie-card a:hover .poster img,
.category-card:hover,
.ranking-row a:hover .rank-thumb img {
  transform: scale(1.09);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 13, 24, 0.72), transparent 48%);
  opacity: 0.75;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(2, 132, 199, 0.86);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.poster em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 9px;
  font-style: normal;
  font-size: 12px;
}

.rank-num {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--moon-500), var(--ocean-600));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--night-300);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  color: var(--night-400);
  font-size: 12px;
  justify-content: space-between;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.movie-card-list a {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card-list .card-body {
  padding: 22px;
}

.movie-card-list .card-body h3 {
  font-size: 22px;
  -webkit-line-clamp: 1;
}

.movie-card-list .card-body p {
  font-size: 15px;
}

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

.category-pills a,
.category-card a {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(19, 41, 67, 0.76), rgba(10, 25, 41, 0.62));
  border: 1px solid rgba(136, 160, 186, 0.14);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.category-pills a:hover,
.category-card a:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(19, 41, 67, 0.8));
}

.category-pills strong,
.category-card h2 {
  margin: 0;
  font-size: 20px;
}

.category-pills span,
.category-card p,
.sample-titles span {
  color: var(--night-300);
  font-size: 13px;
  line-height: 1.6;
}

.sample-titles {
  display: grid;
  gap: 6px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(168, 85, 247, 0.14)),
    rgba(19, 41, 67, 0.68);
  border: 1px solid rgba(136, 160, 186, 0.14);
  box-shadow: var(--shadow);
}

.compact-hero {
  padding: clamp(30px, 6vw, 60px);
}

.compact-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--night-200);
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--night-300);
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 170px;
  gap: 12px;
  margin: 0 0 28px;
}

.sticky-filter {
  position: sticky;
  top: 84px;
  z-index: 30;
  padding: 12px;
  border-radius: 20px;
  background: rgba(10, 25, 41, 0.88);
  border: 1px solid rgba(136, 160, 186, 0.12);
  backdrop-filter: blur(16px);
}

.empty-state {
  display: none;
  margin: 26px 0;
  padding: 26px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--night-300);
  background: rgba(19, 41, 67, 0.54);
}

.empty-state.is-visible {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 62px;
  list-style: none;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(19, 41, 67, 0.48);
  border: 1px solid rgba(136, 160, 186, 0.12);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ranking-row a:hover {
  transform: translateX(4px);
  background: rgba(19, 41, 67, 0.76);
}

.ranking-row b {
  color: var(--ocean-400);
  font-size: 24px;
}

.rank-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--night-800);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

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

.rank-info em {
  color: var(--night-300);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--night-400);
  white-space: nowrap;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  margin-bottom: 40px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(19, 41, 67, 0.72), rgba(10, 25, 41, 0.72));
  border: 1px solid rgba(136, 160, 186, 0.14);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.detail-info h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: var(--night-200);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 14px;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags a:hover {
  color: var(--ocean-400);
}

.player-section h2,
.detail-copy h2 {
  margin-bottom: 16px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(5, 13, 24, 0.78), rgba(5, 13, 24, 0.3));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-overlay span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.92);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.26);
  font-size: 32px;
}

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

.video-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--night-200);
  background: rgba(5, 13, 24, 0.76);
  font-size: 13px;
}

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

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-copy article {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-md);
  background: rgba(19, 41, 67, 0.48);
  border: 1px solid rgba(136, 160, 186, 0.12);
}

.detail-copy p {
  margin: 0;
  color: var(--night-200);
  line-height: 1.9;
}

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(136, 160, 186, 0.12);
  background: rgba(5, 13, 24, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 34px;
  padding: 40px 0 26px;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--night-300);
  line-height: 1.7;
}

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

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(136, 160, 186, 0.12);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .hero-side {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .header-inner {
    height: 68px;
  }

  .brand-text span {
    font-size: 18px;
  }

  .brand-text small,
  .header-search {
    display: none;
  }

  .page {
    padding-top: 82px;
  }

  .hero-stage {
    min-height: 520px;
  }

  .hero-copy {
    left: 22px;
    bottom: 54px;
    width: calc(100% - 44px);
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 39px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-btn,
  .ghost-btn {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-mini-grid,
  .card-grid,
  .dense-grid,
  .rank-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card-list a,
  .detail-hero,
  .detail-copy,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row a {
    grid-template-columns: 38px 78px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 3;
    white-space: normal;
  }

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

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

@media (max-width: 480px) {
  .container,
  .page-home,
  .page-simple,
  .page-detail {
    width: min(100% - 22px, 1180px);
  }

  .hero-stage {
    min-height: 500px;
    border-radius: 18px;
  }

  .hero-btn {
    display: none;
  }

  .hero-mini-grid,
  .card-grid,
  .dense-grid,
  .rank-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-search-box form {
    flex-direction: column;
  }

  .compact-hero,
  .detail-hero {
    padding: 22px;
  }
}
