:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --line: rgba(148, 163, 184, 0.26);
  --dark: #020617;
  --dark-2: #0f172a;
  --amber: #f59e0b;
  --orange: #ea580c;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 34rem),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.36);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  border-radius: 12px;
  padding: 10px 16px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.26);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

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

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.22) 100%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.28), transparent 26rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 340px;
  align-items: center;
  gap: 58px;
  min-height: 620px;
  padding: 72px 0 132px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.28);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.08;
}

.hero p,
.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.search-bar button,
.wide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-btn,
.search-bar button {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.32);
}

.primary-btn:hover,
.search-bar button:hover,
.wide-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.38);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(1.5deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #020617);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.search-bar {
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.20);
}

.search-bar input {
  flex: 1;
  min-width: 160px;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-quick-links a {
  border-radius: 999px;
  padding: 11px 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.66);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

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

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

.hero-dot.active {
  width: 48px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.section {
  padding: 54px 0;
}

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

.section-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-title a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 15px;
  color: #fff;
  background: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.section-title.light h2,
.section-title.light span {
  color: #fff;
}

.section-title.light a {
  color: #0f172a;
  background: #fff;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.from-amber-to-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.from-blue-to-cyan { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.from-purple-to-pink { background: linear-gradient(135deg, #7c3aed, #db2777); }
.from-emerald-to-teal { background: linear-gradient(135deg, #059669, #0d9488); }
.from-red-to-rose { background: linear-gradient(135deg, #dc2626, #e11d48); }
.from-orange-to-red { background: linear-gradient(135deg, #f97316, #dc2626); }
.from-pink-to-rose { background: linear-gradient(135deg, #ec4899, #e11d48); }
.from-slate-to-zinc { background: linear-gradient(135deg, #0f172a, #3f3f46); }
.from-indigo-to-violet { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.from-cyan-to-blue { background: linear-gradient(135deg, #0891b2, #2563eb); }

.category-card-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.category-card-main span {
  font-size: 24px;
  font-weight: 900;
}

.category-card-main strong {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.category-samples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #334155, #020617);
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: 0.22s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .poster-play {
  opacity: 1;
}

.movie-card:hover .poster-play {
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3,
.rank-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover {
  color: var(--orange);
}

.movie-card p,
.rank-item p {
  display: -webkit-box;
  min-height: 46px;
  margin: 9px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: #475569;
  border-color: rgba(148, 163, 184, 0.28);
  background: #f1f5f9;
}

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

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

.movie-card-small p {
  display: none;
}

.panel {
  border-radius: 30px;
  padding: 30px;
}

.panel-dark {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 22rem),
    linear-gradient(135deg, #0f172a, #020617);
  box-shadow: var(--shadow);
}

.horizontal-list,
.side-list {
  display: grid;
  gap: 14px;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  transition: 0.22s ease;
}

.panel-dark .compact-card {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.compact-card img {
  width: 74px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #020617);
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  overflow: hidden;
  color: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.panel-dark .compact-card em {
  color: #cbd5e1;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.small-hero {
  padding: 90px 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(245, 158, 11, 0.30), transparent 24rem),
    linear-gradient(135deg, #0f172a, #020617);
}

.category-hero {
  min-height: 420px;
}

.page-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.54), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.30), transparent 24rem);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

.inline-filter {
  max-width: 680px;
  margin-top: 28px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button,
.toolbar select {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 10px 14px;
  color: #334155;
  background: #fff;
  font-weight: 800;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #334155, #020617);
}

.rank-cover img {
  width: 132px;
  height: 176px;
  object-fit: cover;
}

.rank-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-side,
.detail-side {
  position: sticky;
  top: 94px;
  align-self: start;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.rank-side h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.detail-wrap {
  padding: 34px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.24);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.28)),
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 22rem);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 22px 50px rgba(234, 88, 12, 0.36);
  font-size: 30px;
}

.play-cover strong {
  font-size: 20px;
}

.detail-card {
  margin-top: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.detail-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-head img {
  width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #020617);
}

.detail-head h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-line {
  margin: 16px 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
}

.detail-meta-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-table div {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
}

.detail-meta-table span,
.detail-meta-table strong {
  display: block;
}

.detail-meta-table span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-table strong {
  color: #0f172a;
  font-size: 14px;
}

.detail-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.95;
}

.related-section {
  padding-bottom: 0;
}

.wide-link {
  width: 100%;
  margin-top: 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.site-footer {
  padding: 48px 0;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-brand strong {
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
  margin: 16px 0 0;
  line-height: 1.8;
}

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

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

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

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

[data-card].hidden {
  display: none;
}

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

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

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

  .rank-side,
  .detail-side {
    position: static;
  }
}

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

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 690px;
    padding-top: 46px;
  }

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

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

  .category-grid,
  .big-category-grid,
  .movie-grid,
  .page-movie-grid,
  .horizontal-list,
  .soft-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-head {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .detail-head img {
    width: 120px;
  }

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

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

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

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

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

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

  .brand-text em {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p,
  .page-hero p {
    font-size: 15px;
  }

  .hero-dots {
    bottom: 166px;
  }

  .search-bar {
    min-height: 54px;
  }

  .search-bar button {
    padding: 0 14px;
  }

  .category-grid,
  .big-category-grid,
  .movie-grid,
  .page-movie-grid,
  .horizontal-list,
  .soft-list {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .rank-cover img {
    width: 100px;
    height: 140px;
  }

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

  .detail-head img {
    width: 160px;
  }
}
