:root {
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --emerald-50: #ecfdf5;
  --yellow-400: #facc15;
  --yellow-300: #fde047;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 45%, #fefce8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, #16a34a 0%, #047857 100%);
  box-shadow: 0 10px 30px rgba(4, 120, 87, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  font-size: 32px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #1f2937;
  background: var(--yellow-400);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 10px 16px 16px;
  background: #065f46;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(120deg, #047857 0%, #10b981 56%, #0f766e 100%);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  transform: scale(1.06);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(250, 204, 21, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(4, 120, 87, 0.94), rgba(5, 150, 105, 0.80) 46%, rgba(15, 118, 110, 0.64));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 64px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #1f2937;
  background: var(--yellow-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: #065f46;
  background: #d1fae5;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-lead {
  max-width: 690px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.5vw, 25px);
  line-height: 1.7;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.detail-tags span {
  color: #065f46;
  background: #d1fae5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-ghost,
.btn-light,
.section-more,
.detail-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #1f2937;
  background: var(--yellow-400);
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.28);
}

.btn-primary:hover,
.section-more:hover,
.detail-nav-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-light {
  color: #065f46;
  background: var(--white);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

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

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

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #1f2937;
  background: var(--yellow-400);
  font-weight: 800;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 32px;
  background: var(--yellow-400);
}

.quick-search {
  margin-top: -44px;
  position: relative;
  z-index: 6;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.quick-search-card h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--gray-900);
}

.quick-search-card p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.home-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
}

.home-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--white);
  background: var(--green-600);
  font-weight: 800;
  cursor: pointer;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 56px;
}

.stats-grid article {
  padding: 26px;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.stats-grid article:nth-child(1) {
  background: linear-gradient(135deg, #ec4899, #e11d48);
}

.stats-grid article:nth-child(2) {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.stats-grid article:nth-child(3) {
  background: linear-gradient(135deg, #f97316, #d97706);
}

.stats-grid article:nth-child(4) {
  background: linear-gradient(135deg, #10b981, #047857);
}

.stats-grid span {
  display: block;
  margin-bottom: 10px;
  font-size: 34px;
}

.stats-grid strong {
  display: block;
  font-size: 30px;
}

.stats-grid small {
  color: rgba(255, 255, 255, 0.82);
}

.section-block,
.split-section {
  padding: 62px 0 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading span {
  color: var(--green-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 8px 0 8px;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

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

.poster-link img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 56%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.card-badge,
.score-pill {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-badge {
  right: 12px;
  color: var(--white);
  background: #ef4444;
}

.score-pill {
  left: 12px;
  color: #1f2937;
  background: var(--yellow-400);
}

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

.movie-card-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h2 a:hover {
  color: var(--green-600);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.compact-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span,
.compact-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.20);
}

.category-card::after,
.category-overview::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 38px;
}

.category-card strong {
  display: block;
  font-size: 18px;
}

.category-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.from-blue-500.to-cyan-600 {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.from-pink-500.to-rose-600 {
  background: linear-gradient(135deg, #ec4899, #e11d48);
}

.from-yellow-500.to-amber-600 {
  background: linear-gradient(135deg, #eab308, #d97706);
}

.from-red-500.to-orange-600 {
  background: linear-gradient(135deg, #ef4444, #ea580c);
}

.from-slate-600.to-gray-900 {
  background: linear-gradient(135deg, #475569, #111827);
}

.from-green-500.to-emerald-600 {
  background: linear-gradient(135deg, #22c55e, #059669);
}

.from-orange-600.to-red-700 {
  background: linear-gradient(135deg, #ea580c, #b91c1c);
}

.from-indigo-500.to-purple-600 {
  background: linear-gradient(135deg, #6366f1, #9333ea);
}

.from-teal-500.to-emerald-600 {
  background: linear-gradient(135deg, #14b8a6, #059669);
}

.from-violet-500.to-fuchsia-600 {
  background: linear-gradient(135deg, #8b5cf6, #c026d3);
}

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

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

.compact-item {
  display: grid;
  grid-template-columns: 46px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
}

.rank-num,
.rank-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #1f2937;
  background: var(--yellow-400);
  font-weight: 900;
}

.rank-dot {
  color: var(--white);
  background: var(--green-600);
}

.compact-cover {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.compact-cover img {
  width: 92px;
  height: 72px;
  object-fit: cover;
}

.compact-main h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.compact-main h2 a:hover {
  color: var(--green-600);
}

.compact-main p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-600);
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-panel {
  position: sticky;
  top: 92px;
  padding: 34px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, #047857, #10b981);
  box-shadow: var(--shadow-soft);
}

.feature-panel span {
  color: var(--yellow-300);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.feature-panel h2 {
  margin: 12px 0;
  font-size: 32px;
}

.feature-panel p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.feature-panel a,
.section-more {
  color: #1f2937;
  background: var(--yellow-400);
}

.section-more {
  margin-top: 18px;
}

.page-hero {
  padding: 90px 0 76px;
  color: var(--white);
  background: linear-gradient(135deg, #047857, #10b981 60%, #0f766e);
}

.page-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.ranking-hero {
  background: linear-gradient(135deg, #7c3aed, #16a34a);
}

.search-hero {
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

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

.category-overview-main {
  display: block;
}

.category-overview span {
  display: block;
  margin-bottom: 12px;
  font-size: 42px;
}

.category-overview h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

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

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 170px));
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gray-100);
}

.search-field span {
  color: var(--green-600);
  font-weight: 900;
}

.search-field input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
}

.filter-bar select {
  padding: 0 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  cursor: pointer;
}

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

.search-list,
.ranking-list {
  margin-bottom: 24px;
}

.detail-page {
  padding: 44px 0 64px;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 12%, rgba(250, 204, 21, 0.22), transparent 34%),
    linear-gradient(135deg, #064e3b, #047857 58%, #0f766e);
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 30px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

.player-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.28));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: #1f2937;
  background: var(--yellow-400);
  font-size: 34px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.play-text {
  font-size: 18px;
  font-weight: 900;
}

.detail-info {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-900);
  box-shadow: var(--shadow-soft);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.75;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-cta {
  margin-top: 4px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 56px;
}

.content-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.info-table-card {
  grid-column: 1 / -1;
}

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

.info-table div {
  padding: 16px;
  border-radius: 16px;
  background: #f0fdf4;
}

.info-table dt {
  color: var(--green-600);
  font-weight: 900;
}

.info-table dd {
  margin: 8px 0 0;
  color: var(--gray-800);
}

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

.detail-nav-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.detail-nav-links a {
  color: #1f2937;
  background: var(--yellow-400);
}

.site-footer {
  margin-top: 70px;
  color: var(--white);
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 48px 0;
}

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

.footer-brand span {
  font-size: 30px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--yellow-300);
  font-size: 18px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover {
  color: var(--yellow-300);
}

.footer-bottom {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.60);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #1f2937;
  background: var(--yellow-400);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

@media (max-width: 1024px) {
  .hero-inner,
  .detail-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

@media (max-width: 760px) {
  .site-nav {
    height: 62px;
  }

  .nav-menu {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

  .hero,
  .hero-inner {
    min-height: 560px;
  }

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

  .quick-search-card,
  .footer-grid,
  .detail-content,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .home-search {
    border-radius: 18px;
    flex-direction: column;
    padding: 12px;
  }

  .home-search input,
  .home-search button {
    min-height: 46px;
  }

  .stats-grid,
  .movie-grid,
  .library-grid,
  .category-movie-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-item {
    grid-template-columns: 38px 74px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .compact-cover img {
    width: 74px;
    height: 62px;
  }

  .compact-main h2 {
    font-size: 16px;
  }

  .compact-main p {
    display: none;
  }

  .page-hero {
    padding: 66px 0 54px;
  }

  .detail-info {
    padding: 22px;
  }

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