:root {
  --color-blue: #2563eb;
  --color-cyan: #06b6d4;
  --color-teal: #14b8a6;
  --color-slate: #0f172a;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f8fafc;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 1.25rem;
  --radius-lg: 0.875rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 52%, #f8fafc 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo-text {
  font-size: 1.32rem;
  background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--color-blue);
  background: #eff6ff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 999px;
}

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

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 45%, #14b8a6 100%);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) brightness(0.72);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.25), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.84), rgba(37, 99, 235, 0.67), rgba(6, 182, 212, 0.58));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 56px;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.86rem;
}

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

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 5vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  max-width: 860px;
}

.hero-copy p {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  color: #dbeafe;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 620px;
  margin-top: 28px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  padding: 13px 16px;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

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

.hero-search button,
.primary-button {
  color: #1d4ed8;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

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

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
}

.hero-stats span {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  font-size: 2rem;
  line-height: 1;
}

.hero-stats em {
  color: #bfdbfe;
  font-style: normal;
  font-size: 0.86rem;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.42);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: perspective(1000px) rotateY(0) scale(1.02);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.75));
}

.hero-poster-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.hero-poster-info em {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: #ef4444;
  font-style: normal;
  font-weight: 900;
  font-size: 0.78rem;
}

.hero-poster-info strong {
  font-size: 1.3rem;
  line-height: 1.25;
}

.hero-poster-info small {
  color: #dbeafe;
}

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

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

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

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

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

.section-title h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-title h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-title p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.section-kicker {
  color: var(--color-blue);
  background: #dbeafe;
}

.section-more {
  flex: 0 0 auto;
  color: var(--color-blue);
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eff6ff;
}

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

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

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

.movie-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.84);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
  border-color: rgba(59, 130, 246, 0.3);
}

.card-media {
  position: relative;
  overflow: hidden;
  display: block;
  background: #e5e7eb;
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.68));
}

.card-type,
.card-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 900;
}

.card-type {
  top: 12px;
  left: 12px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
}

.card-duration {
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
}

.rank-badge {
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: #ef4444;
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-body strong {
  color: #111827;
  font-size: 1.07rem;
  line-height: 1.35;
}

.card-line {
  color: #4b5563;
  font-size: 0.94rem;
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: #6b7280;
  font-size: 0.84rem;
  display: block;
}

.tag-row span {
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 8px;
}

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

.category-card,
.overview-link {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 240px;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.category-card-bg,
.category-card-bg img {
  position: absolute;
  inset: 0;
}

.category-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-card-bg img,
.overview-link:hover img {
  transform: scale(1.08);
}

.category-card::after,
.overview-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.category-card-content,
.overview-content {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 24px;
}

.category-card-content strong,
.overview-content strong {
  font-size: 1.35rem;
  line-height: 1.2;
}

.category-card-content em,
.overview-content em {
  width: fit-content;
  font-style: normal;
  color: #dbeafe;
  font-weight: 800;
}

.category-card-content small,
.overview-content small {
  color: rgba(255, 255, 255, 0.82);
}

.overview-card {
  border-radius: 24px;
}

.overview-link {
  min-height: 300px;
}

.overview-covers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.overview-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.related-panel,
.content-card,
.player-card,
.filter-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: var(--shadow-card);
}

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

.ranking-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.ranking-panel-head span {
  color: #ef4444;
  font-weight: 1000;
  letter-spacing: 0.16em;
}

.ranking-panel-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

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

.ranking-item {
  grid-template-columns: 46px 112px minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
}

.compact-ranking .ranking-item {
  grid-template-columns: 38px 86px minmax(0, 1fr);
}

.compact-ranking .ranking-side,
.compact-ranking .tag-row,
.compact-ranking .ranking-main span:first-of-type {
  display: none;
}

.ranking-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 1000;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.ranking-cover {
  overflow: hidden;
  border-radius: 14px;
}

.ranking-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ranking-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

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

.ranking-main strong {
  color: #0f172a;
}

.ranking-main span {
  color: #64748b;
  font-size: 0.9rem;
}

.ranking-side {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: #64748b;
  font-size: 0.86rem;
}

.ranking-side em {
  color: #f97316;
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 1000;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #14b8a6);
  padding: 76px 0 88px;
  overflow: hidden;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -50% auto auto 50%;
  width: 680px;
  height: 680px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(-5%);
}

.page-hero > div {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin-top: 14px;
}

.page-hero p {
  color: #dbeafe;
  max-width: 720px;
  font-size: 1.08rem;
}

.soft-hero,
.search-hero {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.ranking-hero {
  background: linear-gradient(135deg, #0f172a, #2563eb 50%, #06b6d4);
}

.tone-blue { background-color: #2563eb; }
.tone-cyan { background-color: #0891b2; }
.tone-purple { background-color: #7c3aed; }
.tone-red { background-color: #dc2626; }
.tone-pink { background-color: #db2777; }
.tone-orange { background-color: #ea580c; }
.tone-green { background-color: #16a34a; }
.tone-teal { background-color: #0f766e; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #64748b;
  font-weight: 800;
  font-size: 0.92rem;
}

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

.breadcrumb-sep {
  color: #cbd5e1;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 20px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 160px 180px auto;
  align-items: end;
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 900;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  height: 46px;
  border: 1px solid #dbe3ef;
  outline: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.filter-result {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--color-blue);
  background: #eff6ff;
  font-weight: 900;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) brightness(0.5);
  transform: scale(1.08);
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.76), rgba(8, 145, 178, 0.64));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.detail-hero .breadcrumb {
  color: #bfdbfe;
}

.detail-hero .breadcrumb a {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  color: #ffffff;
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.detail-copy p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 1.13rem;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

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

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

.player-card {
  padding: 18px;
}

.player-block {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-button span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.4);
  font-size: 2rem;
}

.play-button strong {
  font-size: 1.12rem;
}

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

.content-card {
  padding: 26px;
}

.content-card h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 1.45rem;
}

.content-card p {
  margin: 0;
  color: #334155;
  font-size: 1.02rem;
}

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

.info-card dl div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-card dt {
  color: #64748b;
  font-weight: 900;
  font-size: 0.82rem;
}

.info-card dd {
  margin: 5px 0 0;
  color: #0f172a;
  font-weight: 800;
}

.info-card a {
  color: var(--color-blue);
}

.related-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

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

.movie-card-compact {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card-compact .card-media img {
  height: 100%;
  aspect-ratio: auto;
}

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

.movie-card-compact .card-line,
.movie-card-compact .tag-row {
  display: none;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  margin-top: 40px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 1fr;
  gap: 42px;
}

.footer-logo {
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-brand p {
  max-width: 430px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  text-align: center;
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .detail-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .related-panel {
    position: static;
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 54px 0 82px;
  }

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

  .hero-poster {
    transform: none;
    max-width: 360px;
  }

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

  .section-title {
    align-items: start;
    flex-direction: column;
  }

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

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

  .detail-cover {
    max-width: 260px;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .mobile-nav,
  .section-wrap,
  .page-hero > div,
  .detail-hero-inner,
  .footer-grid,
  .footer-bottom,
  .hero-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-copy h1 {
    font-size: 2.28rem;
  }

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

  .ranking-item,
  .compact-ranking .ranking-item {
    grid-template-columns: 34px 88px minmax(0, 1fr);
  }

  .ranking-side {
    display: none;
  }

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

  .info-card dl {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}
