:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --teal-600: #0d9488;
  --cyan-600: #0891b2;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img.is-missing {
  opacity: 0;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-600), var(--cyan-600));
  box-shadow: 0 12px 36px rgba(6, 95, 70, 0.25);
}

.header-inner {
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--emerald-600);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-copy strong,
.footer-brand strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  display: block;
  color: var(--emerald-100);
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  color: inherit;
}

.header-search input,
.mobile-search input {
  width: 180px;
  padding: 8px 10px;
  color: var(--white);
  background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: var(--emerald-100);
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-btn {
  border: 0;
  color: var(--white);
  background: var(--slate-900);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button {
  padding: 8px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--white);
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-panel {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-panel nav a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  color: var(--white);
  overflow: hidden;
  background: radial-gradient(circle at top left, #14b8a6, transparent 34%), var(--slate-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide > img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding-right: 380px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-bottom: 12px;
  color: #a7f3d0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.category-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-meta,
.detail-meta,
.rank-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.hero-meta span,
.detail-meta span,
.detail-meta strong {
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(90deg, var(--emerald-600), var(--teal-600));
}

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.ghost-btn.dark {
  color: var(--emerald-600);
  border-color: var(--emerald-100);
  background: var(--emerald-50);
}

.hero-search-card {
  position: absolute;
  top: 105px;
  right: max(24px, calc((100% - 1180px) / 2));
  z-index: 4;
  width: min(355px, calc(100% - 40px));
  padding: 24px;
  color: var(--slate-800);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.hero-search-card p {
  margin: 0 0 16px;
  color: var(--slate-500);
}

.hero-search-card form,
.big-search {
  display: flex;
  gap: 8px;
}

.hero-search-card input,
.big-search input {
  min-width: 0;
  flex: 1;
  padding: 13px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  outline: 0;
}

.hero-search-card button,
.big-search button {
  padding: 0 18px;
  border: 0;
  color: var(--white);
  background: var(--emerald-600);
  border-radius: 999px;
  font-weight: 800;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.hero-mini-stats div {
  padding: 12px;
  border-radius: 16px;
  background: var(--emerald-50);
}

.hero-mini-stats strong {
  display: block;
  color: var(--emerald-600);
  font-size: 1.45rem;
}

.hero-mini-stats span {
  color: var(--slate-500);
  font-size: 0.86rem;
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: var(--container);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dot {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  color: var(--white);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(14px);
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active,
.hero-dot:hover {
  opacity: 1;
  transform: translateY(-3px);
  background: rgba(5, 150, 105, 0.68);
}

.hero-dot img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-dot span {
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section-wrap {
  width: var(--container);
  margin: 0 auto;
  padding: 68px 0;
}

.compact-top {
  padding-top: 24px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

.section-head h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--slate-500);
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  color: var(--slate-800);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
  transform: translateY(-5px);
  border-color: #99f6e4;
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 2.1rem;
}

.category-tile strong {
  font-size: 1.05rem;
}

.category-tile small {
  color: var(--slate-500);
}

.two-column-feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.poster-wrap,
.detail-poster,
.rank-cover,
.category-cover-stack {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.45), transparent 32%),
    linear-gradient(135deg, #0f172a, #0d9488 58%, #0891b2);
}

.poster-wrap {
  display: block;
  aspect-ratio: 2 / 3;
}

.poster-wrap::after,
.detail-poster::after,
.rank-cover::after,
.category-cover-stack::after {
  content: attr(data-number);
  position: absolute;
  inset: auto 14px 12px auto;
  color: rgba(255, 255, 255, 0.24);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.poster-wrap img,
.detail-poster img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.score-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.score-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(5, 150, 105, 0.9);
}

.play-badge {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.9);
}

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

.card-meta {
  margin-bottom: 9px;
  color: var(--slate-500);
  font-size: 0.78rem;
}

.card-meta span:not(:last-child)::after,
.rank-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: var(--slate-300);
}

.movie-card h3,
.rank-item h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 1.05rem;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.category-card-large h2 a:hover {
  color: var(--emerald-600);
}

.movie-card p,
.rank-item p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 5px 9px;
  color: var(--emerald-700, #047857);
  background: var(--emerald-50);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.large-tags span {
  padding: 7px 11px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

.rank-list.compact {
  gap: 12px;
}

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 82px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.rank-list.compact .rank-item {
  grid-template-columns: auto 66px 1fr;
}

.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-600), var(--cyan-600));
  border-radius: 14px;
  font-weight: 900;
}

.rank-cover {
  width: 82px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

.rank-list.compact .rank-cover {
  width: 66px;
}

.rank-meta {
  color: var(--slate-500);
  font-size: 0.86rem;
}

.rank-meta strong {
  color: var(--emerald-600);
}

.section-more {
  margin-top: 22px;
  color: var(--emerald-600);
  background: var(--emerald-50);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.sticky-filter {
  position: sticky;
  top: 88px;
  z-index: 20;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  padding: 0 14px;
  color: var(--slate-700);
  background: var(--slate-50);
  border-radius: 14px;
}

.filter-bar input {
  min-width: 260px;
  flex: 1;
}

.center-actions {
  justify-content: center;
}

.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.72), transparent 36%),
    linear-gradient(120deg, var(--slate-900), #064e3b 70%, #155e75);
}

.page-hero {
  padding: 76px max(16px, calc((100% - 1180px) / 2));
}

.page-hero p,
.category-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.big-search {
  max-width: 760px;
  margin-top: 24px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-cover-stack {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 5px;
  border-radius: 20px;
}

.category-cover-stack img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.category-cover-stack > span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 2rem;
  transform: translate(-50%, -50%);
}

.category-card-large h2 {
  margin: 8px 0 8px;
  color: var(--slate-900);
}

.category-card-large p {
  color: var(--slate-500);
}

.category-card-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0;
}

.category-card-meta strong {
  color: var(--emerald-600);
  font-size: 2rem;
}

.category-hero {
  width: var(--container);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  margin: 28px auto 0;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  font-size: 3rem;
}

.breadcrumb {
  width: var(--container);
  margin: 22px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--slate-500);
  font-size: 0.94rem;
}

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

.detail-hero {
  min-height: 560px;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.42));
}

.detail-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 310px) 1fr;
  gap: 40px;
  align-items: center;
  padding: 42px 0;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  max-width: 860px;
}

.detail-one-line {
  max-width: 860px;
  margin: 20px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

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

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

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

.movie-player {
  width: 100%;
  height: 100%;
  background: var(--slate-900);
}

.player-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  border: 0;
  background:
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.36)),
    radial-gradient(circle at center, rgba(16, 185, 129, 0.34), transparent 30%);
}

.player-shell.is-playing .player-trigger {
  display: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: var(--emerald-600);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
}

.player-trigger strong {
  font-size: 1.3rem;
}

.player-trigger small {
  color: var(--emerald-100);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 4;
  margin: 0;
  color: var(--emerald-100);
  font-weight: 700;
}

.content-block,
.side-card {
  margin-top: 24px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.content-block h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--slate-900);
}

.content-block p,
.side-card p {
  margin: 0;
  color: var(--slate-600, #475569);
}

.info-table dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}

.info-table dt {
  color: var(--slate-500);
  font-weight: 700;
}

.info-table dd {
  margin: 0;
}

.side-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.side-list .rank-item {
  grid-template-columns: 72px 1fr;
}

.side-list .rank-num {
  display: none;
}

.side-list .rank-cover {
  width: 72px;
}

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 52px 0 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer p {
  color: var(--slate-300);
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--slate-300);
}

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

.back-top {
  padding: 10px 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 24px;
  color: var(--slate-500);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

[data-filter-grid] .is-hidden,
[data-search-results] .is-hidden {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
  color: var(--slate-500);
  background: var(--white);
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-lg);
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-content {
    padding-right: 0;
    max-width: none;
  }

  .hero-search-card {
    position: relative;
    top: auto;
    right: auto;
    width: var(--container);
    margin: 430px auto 0;
  }

  .hero-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-column-feature,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .poster-grid,
  .poster-grid.small-grid,
  .poster-grid.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    min-height: 470px;
    padding-top: 40px;
  }

  .hero-content h1,
  .page-hero h1,
  .category-hero h1,
  .detail-info h1 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .hero-search-card {
    margin-top: 390px;
  }

  .hero-thumbs {
    display: none;
  }

  .category-grid,
  .poster-grid,
  .poster-grid.small-grid,
  .poster-grid.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

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

  .rank-item,
  .rank-list.compact .rank-item {
    grid-template-columns: auto 62px 1fr;
    gap: 10px;
  }

  .rank-cover,
  .rank-list.compact .rank-cover {
    width: 62px;
  }

  .filter-bar {
    display: grid;
  }

  .filter-bar input,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

  .big-search,
  .hero-search-card form {
    display: grid;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .poster-grid,
  .poster-grid.small-grid,
  .poster-grid.feature-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-num {
    display: none;
  }

  .rank-item,
  .rank-list.compact .rank-item {
    grid-template-columns: 72px 1fr;
  }
}
