:root {
  --page-bg: #fff7ed;
  --panel-bg: rgba(255, 255, 255, 0.86);
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --orange: #f97316;
  --pink: #ec4899;
  --yellow: #facc15;
  --rose: #fb7185;
  --line: rgba(249, 115, 22, 0.18);
  --shadow: 0 22px 60px rgba(124, 45, 18, 0.16);
  --soft-shadow: 0 12px 30px rgba(124, 45, 18, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 191, 36, 0.24), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(236, 72, 153, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #fff1f2 42%, #ffffff 100%);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.header-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--yellow));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
}

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

.logo-text strong,
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ea580c, #db2777, #ca8a04);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
}

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

.desktop-nav a,
.mobile-panel a {
  padding: 10px 15px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #ea580c;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

.header-search input,
.mobile-panel input,
.page-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
}

.header-search input {
  width: 210px;
  padding: 8px 4px 8px 12px;
}

.header-search button,
.mobile-panel button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  place-items: center;
  gap: 4px;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text-main);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 16px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  margin-top: -1px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 52%, #facc15 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.7;
  pointer-events: none;
}

.orb-one {
  width: 360px;
  height: 360px;
  top: 8%;
  right: 8%;
  background: rgba(255, 255, 255, 0.16);
}

.orb-two {
  width: 260px;
  height: 260px;
  left: 5%;
  bottom: 8%;
  background: rgba(250, 204, 21, 0.2);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(0deg, var(--page-bg), transparent);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.52fr);
  align-items: center;
  gap: 48px;
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  padding: 74px 0 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(2px) saturate(1.16);
  transform: scale(1.03);
  pointer-events: none;
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.page-hero span,
.section-title span,
.detail-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 22px 0 22px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 42px rgba(124, 45, 18, 0.24);
}

.hero-copy p {
  width: min(680px, 100%);
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 18px 36px rgba(190, 24, 93, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
}

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

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

.hero-tags span,
.tag-cloud span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #be123c;
  background: #fff7ed;
}

.hero-poster {
  align-self: center;
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 30px 80px rgba(124, 45, 18, 0.28);
  backdrop-filter: blur(16px);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-poster span {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #ea580c;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 38px;
  background: #ffffff;
}

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

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

.section-title span,
.page-hero span,
.detail-kicker {
  color: #ea580c;
  background: #ffedd5;
}

.section-title h2,
.page-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-title p,
.page-hero p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-link {
  color: #ea580c;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  white-space: nowrap;
}

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

.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.movie-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 26px;
  background: var(--card-bg);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(249, 115, 22, 0.1);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(236, 72, 153, 0.22);
}

.poster-shell {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(236, 72, 153, 0.2));
}

.poster-shell img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-shell img {
  transform: scale(1.055);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.58), transparent);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 22px rgba(190, 24, 93, 0.28);
}

.movie-card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #9a3412;
}

.movie-meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card strong {
  font-size: 18px;
  line-height: 1.28;
}

.movie-card em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 13px;
}

.movie-card-desc {
  color: #4b5563;
  line-height: 1.65;
  font-size: 13px;
}

.movie-card-compact .movie-card-desc {
  display: none;
}

.movie-card-compact .tag-cloud {
  display: none;
}

.warm-panel {
  position: relative;
  padding: 42px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 237, 213, 0.76));
  box-shadow: var(--soft-shadow);
}

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

.category-card,
.category-overview-card {
  display: grid;
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(236, 72, 153, 0.18));
}

.category-info,
.overview-text {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.category-info strong,
.overview-text strong {
  font-size: 20px;
}

.category-info em,
.overview-text em {
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.7;
  font-size: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.ranking-panel,
.story-card,
.poster-side,
.filter-panel,
.detail-info-card,
.player-card,
.page-hero {
  border: 1px solid rgba(249, 115, 22, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-xl);
  padding: 24px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 38px 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: transform 0.24s ease, background 0.24s ease;
}

.ranking-item:hover {
  background: #ffffff;
  transform: translateX(4px);
}

.ranking-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.ranking-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.14);
}

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

.ranking-info strong,
.ranking-info em,
.ranking-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info em {
  color: #9a3412;
  font-style: normal;
  font-size: 13px;
}

.ranking-info span {
  color: var(--text-muted);
  font-size: 12px;
}

.page-hero {
  position: relative;
  width: min(100% - 32px, var(--max-width));
  margin: 36px auto 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(34px, 7vw, 74px);
  background:
    radial-gradient(circle at 84% 18%, rgba(236, 72, 153, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 237, 213, 0.86));
}

.small-hero,
.search-hero,
.ranking-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 32px;
  align-items: center;
}

.hero-mini-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transform: rotate(2deg);
}

.hero-mini-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.overview-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 12px 0;
}

.overview-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.14);
}

.overview-text span {
  width: fit-content;
  color: #ea580c;
  font-weight: 900;
}

.filter-panel {
  width: min(100% - 32px, var(--max-width));
  margin: 34px auto 0;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.compact-title {
  margin-bottom: 16px;
}

.filter-row {
  display: grid;
  gap: 14px;
}

.page-search {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.14);
}

.page-search span {
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.page-search input {
  width: 100%;
  min-height: 34px;
  font-size: 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 999px;
  color: #9a3412;
  font-weight: 800;
  background: #fff7ed;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  transform: translateY(-1px);
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 18px;
  color: #9a3412;
  background: #fff7ed;
}

.empty-state.show {
  display: block;
}

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

.large-ranking {
  gap: 14px;
}

.large-ranking .ranking-item {
  grid-template-columns: 46px 74px minmax(0, 1fr);
  padding: 14px;
}

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

.detail-layout {
  width: min(100% - 32px, var(--max-width));
  margin: 30px auto 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 800;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 420px;
  gap: 28px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #111827;
  min-height: 520px;
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #111827;
  object-fit: contain;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #111827;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.18));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.play-circle span {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #ea580c;
}

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

.detail-info-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 38px);
}

.detail-info-card h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-info-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.85;
  font-size: 17px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  font-weight: 800;
  background: #fff7ed;
}

.detail-tags span {
  background: #ffedd5;
}

.wide-button {
  align-self: flex-start;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.story-card,
.poster-side {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 38px);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.story-card p {
  margin: 0 0 26px;
  line-height: 2;
  color: #374151;
  font-size: 16px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.poster-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(249, 115, 22, 0.14);
}

.poster-side strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.poster-side span {
  color: var(--text-muted);
}

.site-footer {
  margin-top: 60px;
  padding: 44px 0;
  border-top: 1px solid rgba(249, 115, 22, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 560px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.hide-card {
  display: none !important;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.movie-card,
.category-card,
.ranking-item,
.story-card {
  animation: fadeRise 0.42s ease both;
}

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

  .split-layout,
  .ranking-page-layout,
  .detail-hero-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .poster-side {
    position: static;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

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

  .nav-toggle {
    display: grid;
    margin-left: auto;
  }

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

  .header-inner {
    min-height: 68px;
  }

  .hero-section {
    min-height: 780px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0 120px;
  }

  .hero-copy h1 {
    margin-top: 18px;
  }

  .hero-poster {
    max-width: 260px;
    justify-self: center;
    transform: rotate(0deg);
  }

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

  .hero-mini-card {
    max-width: 220px;
  }

  .player-card {
    min-height: 360px;
  }

  .footer-inner {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .content-section,
  .filter-panel,
  .page-hero,
  .detail-layout,
  .footer-inner {
    width: min(100% - 22px, var(--max-width));
  }

  .logo-text em {
    display: none;
  }

  .hero-section {
    min-height: 720px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

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

  .section-title {
    display: grid;
    align-items: start;
  }

  .warm-panel {
    padding: 24px 16px;
  }

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

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

  .movie-card strong {
    font-size: 15px;
  }

  .movie-card-desc,
  .tag-cloud,
  .movie-card em {
    display: none;
  }

  .ranking-item,
  .large-ranking .ranking-item {
    grid-template-columns: 34px 56px minmax(0, 1fr);
    padding: 9px;
  }

  .ranking-item img {
    width: 56px;
    height: 74px;
  }

  .page-hero {
    padding: 28px 20px;
  }

  .player-card {
    min-height: 250px;
  }

  .play-circle {
    width: 72px;
    height: 72px;
  }
}
