* {
  box-sizing: border-box;
}

:root {
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --indigo: #4f46e5;
  --purple: #7c3aed;
  --yellow: #facc15;
  --rose: #fb7185;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f6fb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.11);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.18);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.brand:hover .brand-mark {
  transform: scale(1.06);
}

.brand-mark,
.movie-card,
.category-card,
.button,
.nav-link,
.poster-wrap img,
.side-item,
.rank-item {
  transition: all 0.25s ease;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 5px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.header-search {
  flex: 1 1 420px;
  max-width: 480px;
  position: relative;
}

.header-search input,
.mobile-search input,
.filter-search input,
.filter-selects select {
  width: 100%;
  border: 2px solid #bfdbfe;
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

.header-search input {
  height: 42px;
  padding: 0 48px 0 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #ffffff;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  height: 42px;
  padding: 0 14px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--blue);
}

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

.mobile-nav .nav-link {
  padding: 10px 0;
}

.hero-section {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(110deg, #2563eb 0%, #4f46e5 52%, #1d4ed8 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero-bg span {
  position: absolute;
  display: block;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(70px);
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-bg span:nth-child(1) {
  top: 32px;
  left: 7%;
}

.hero-bg span:nth-child(2) {
  right: 10%;
  bottom: 54px;
  animation-delay: 0.8s;
}

.hero-bg span:nth-child(3) {
  left: 44%;
  top: 44%;
  animation-delay: 1.6s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.85;
  }
}

.hero-container {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
}

.hero-slide {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 68px 0;
}

.hero-slide.active {
  display: flex;
  animation: fadeRise 0.45s ease both;
}

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

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 0;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 21px);
}

.hero-feature {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-feature strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.hero-feature span {
  color: #e0e7ff;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
}

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

.button.ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  flex: 0 0 min(360px, 34vw);
  height: 455px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.45);
  transform: rotate(2deg);
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

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

.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  box-shadow: var(--shadow);
}

.hero-poster-title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  font-size: 22px;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.section {
  padding: 70px 0;
}

.soft-section {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.section-head div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
}

.section-line {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--indigo));
}

.section-head a,
.text-link,
.side-more {
  color: var(--blue);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  background: #dbeafe;
}

.compact .poster-wrap {
  height: 218px;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  right: 12px;
  padding: 5px 10px;
  background: var(--blue);
}

.rank-badge {
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--yellow), #f97316);
  color: #111827;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.32);
}

.play-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  transform: translateY(10px);
  opacity: 0;
  color: #ffffff;
  font-weight: 900;
}

.movie-card:hover .play-chip {
  transform: translateY(0);
  opacity: 1;
}

.card-body {
  padding: 18px;
}

.card-meta,
.card-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta a {
  color: var(--blue);
  background: #dbeafe;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 800;
}

.card-title {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.card-title a:hover,
.rank-copy h2 a:hover {
  color: var(--blue);
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 45px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
}

.card-stats {
  justify-content: space-between;
  border-top: 1px solid #f0f2f5;
  padding-top: 12px;
}

.card-stats span:first-child {
  color: #f59e0b;
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 96px 1fr;
  gap: 16px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.list-rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, var(--yellow), #f97316);
  font-weight: 900;
}

.list-rank.muted {
  color: #ffffff;
  background: var(--blue);
}

.rank-thumb {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: #dbeafe;
}

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

.rank-copy h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.rank-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 14px;
}

.rank-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.rank-copy div a {
  color: var(--blue);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px;
  color: #ffffff;
  background: #1e3a8a;
  box-shadow: var(--shadow);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-card img,
.category-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.category-shade {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.86));
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
}

.category-card strong {
  font-size: 22px;
  line-height: 1.2;
}

.category-card em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  color: #e5e7eb;
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(110deg, #2563eb 0%, #4f46e5 50%, #1d4ed8 100%);
  padding: 74px 0 70px;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  max-width: 880px;
}

.page-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.filter-search input {
  height: 48px;
  padding: 0 18px;
}

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

.filter-selects label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
  font-size: 13px;
}

.filter-selects select {
  height: 44px;
  padding: 0 14px;
}

.empty-state {
  border-radius: 18px;
  padding: 24px;
  color: #4b5563;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: stretch;
  border-radius: var(--radius);
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
  background: #dbeafe;
}

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

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: #4b5563;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sample-links a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
}

.ranking-top-grid {
  margin-bottom: 0;
}

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

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

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  transform: scale(1.08);
  opacity: 0.35;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(30, 64, 175, 0.92), rgba(17, 24, 39, 0.72));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 44px 0 54px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  width: 260px;
  height: 360px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
  max-width: 850px;
}

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

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 12px;
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.12);
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

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

.player-cover img {
  object-fit: cover;
  opacity: 0.55;
}

.player-cover-shade {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(0, 0, 0, 0.72));
}

.player-button {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  font-size: 36px;
  box-shadow: var(--shadow-lg);
}

.player-cover strong {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 24px;
  font-size: 24px;
  text-align: left;
}

.content-card,
.side-card {
  margin-top: 24px;
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2f5;
}

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

.info-list dd {
  margin: 0;
  color: #111827;
}

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

.detail-side {
  position: sticky;
  top: 102px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
}

.side-item:hover {
  background: #eff6ff;
}

.side-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.side-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.side-item em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.side-more {
  display: block;
  margin-top: 18px;
  text-align: center;
  border-radius: 14px;
  padding: 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
}

.site-footer {
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937 50%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 52px 0 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand strong {
  font-size: 22px;
}

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

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
}

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

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .hero-slide {
    gap: 28px;
  }

  .hero-poster {
    flex-basis: 310px;
    height: 420px;
  }

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

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

  .detail-side {
    position: static;
  }

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

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

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text em {
    display: none;
  }

  .hero-section,
  .hero-container {
    min-height: auto;
  }

  .hero-slide.active {
    display: grid;
  }

  .hero-slide {
    padding: 44px 0 70px;
  }

  .hero-poster {
    width: min(100%, 340px);
    height: 360px;
    flex: none;
    transform: none;
  }

  .hero-dots {
    left: 0;
    bottom: 28px;
  }

  .section {
    padding: 46px 0;
  }

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

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

  .poster-wrap,
  .compact .poster-wrap {
    height: 260px;
  }

  .rank-item {
    grid-template-columns: 40px 86px 1fr;
    gap: 12px;
  }

  .rank-thumb {
    width: 86px;
    height: 86px;
  }

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

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

  .category-cover {
    height: 220px;
  }

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

  .detail-poster {
    width: min(100%, 260px);
    height: 360px;
  }

  .detail-copy h1,
  .page-hero h1,
  .hero-copy h1 {
    font-size: 36px;
  }

  .detail-meta span {
    font-size: 13px;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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