:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --green-600: #16a34a;
  --purple-600: #9333ea;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.65;
}

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

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-600);
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  font-size: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--orange-500));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

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

.nav-link {
  position: relative;
  color: var(--gray-700);
  font-size: 17px;
  font-weight: 700;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue-600);
  transition: right 0.22s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--gray-700);
}

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

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

.mobile-nav-link {
  padding: 12px 4px;
  border-top: 1px solid var(--gray-200);
  font-weight: 700;
  color: var(--gray-700);
}

.mobile-nav-link.is-active {
  color: var(--blue-600);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700) 42%, var(--blue-900));
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.32), transparent 30%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.10), rgba(3, 7, 18, 0.28));
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  padding: 92px 0 130px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--blue-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--blue-100);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:hover {
  background: var(--orange-600);
}

.btn-secondary {
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.hero-slider {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-poster {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
}

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

.hero-poster img:not([src]),
.poster-frame img:not([src]),
.detail-poster img:not([src]),
.category-cover img:not([src]) {
  display: none;
}

.hero-poster::after,
.poster-frame::after,
.detail-poster::after,
.category-cover::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 42px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.82), rgba(249, 115, 22, 0.72));
  z-index: 0;
}

.hero-poster img,
.poster-frame img,
.detail-poster img,
.category-cover img {
  position: relative;
  z-index: 1;
}

.hero-slide-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.hero-slide-info h2 {
  margin: 0 0 12px;
  font-size: 31px;
  line-height: 1.2;
}

.hero-slide-info p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.hero-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--orange-500);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 92px;
}

.quick-stats {
  padding: 54px 0;
  background: var(--white);
}

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

.stat-card {
  padding: 26px 18px;
  text-align: center;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.stat-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-600);
  font-size: 24px;
  background: var(--blue-100);
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-600);
  font-size: 25px;
}

.section {
  padding: 76px 0;
}

.section.is-white {
  background: var(--white);
}

.section.is-gray {
  background: var(--gray-50);
}

.section.is-dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
  color: var(--gray-800);
}

.section.is-dark .section-heading h2,
.section.is-dark .section-heading p {
  color: var(--white);
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.section-link {
  flex: 0 0 auto;
  color: var(--blue-600);
  font-weight: 800;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.86);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.28);
}

.poster-frame {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-600), var(--orange-500));
}

.movie-card.is-compact .poster-frame {
  height: 205px;
}

.poster-frame img {
  transition: transform 0.32s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.04), rgba(3, 7, 18, 0.64));
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 48px;
  opacity: 0;
  background: rgba(3, 7, 18, 0.24);
  transition: opacity 0.25s ease;
}

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

.region-badge,
.year-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.region-badge {
  top: 14px;
  right: 14px;
  background: var(--orange-500);
}

.year-badge {
  left: 14px;
  bottom: 14px;
  background: var(--blue-600);
}

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

.movie-card-body strong {
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.32;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.24s ease;
}

.movie-card:hover .movie-card-body strong {
  color: var(--blue-600);
}

.movie-card-body em {
  min-height: 46px;
  color: var(--gray-600);
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--gray-300);
}

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

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 12px;
}

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

.feature-card,
.category-tile {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.feature-card:hover,
.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--white);
  font-size: 26px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.feature-card:nth-child(3) .feature-icon,
.feature-card:nth-child(6) .feature-icon {
  background: linear-gradient(135deg, var(--green-600), var(--blue-600));
}

.feature-card h3,
.category-tile h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.feature-card p,
.category-tile p {
  margin: 0;
  color: var(--gray-600);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 66px 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.24s ease, background 0.24s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.rank-number {
  font-size: 34px;
  line-height: 1;
  color: var(--orange-500);
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  position: relative;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-600), var(--orange-500));
}

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

.rank-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.rank-info span {
  color: var(--gray-300);
  font-size: 13px;
}

.page-hero {
  color: var(--white);
  padding: 70px 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--blue-100);
  font-size: 19px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 0.5fr));
  gap: 14px;
  margin: 30px 0 34px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 188px;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% 35%;
  height: 120px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.09);
}

.category-tile strong {
  display: inline-flex;
  margin-top: 20px;
  color: var(--blue-600);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  font-weight: 800;
}

.pagination .is-current {
  color: var(--white);
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.detail-shell {
  padding: 34px 0 76px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--blue-600);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.82fr);
  gap: 30px;
  align-items: start;
}

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

.player video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--gray-950);
  cursor: pointer;
}

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(3, 7, 18, 0.56);
}

.player-loading[hidden] {
  display: none;
}

.spinner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-top-color: var(--white);
  animation: spin 0.85s linear infinite;
}

.player-center-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  font-size: 31px;
  background: rgba(249, 115, 22, 0.95);
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.player.is-playing .player-center-button {
  opacity: 0;
  pointer-events: none;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent);
}

.player-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.player-title {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  margin-left: auto;
}

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

.content-card:first-child,
.side-card:first-child {
  margin-top: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue-600);
  background: var(--blue-100);
  font-size: 13px;
  font-weight: 800;
}

.badge.is-gray {
  color: var(--gray-600);
  background: var(--gray-100);
}

.content-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.content-card h2,
.side-card h2,
.related-section h2 {
  margin: 0 0 16px;
  color: var(--gray-800);
  font-size: 25px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.tag-cloud a,
.tag-cloud span {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--gray-100);
  font-size: 13px;
}

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

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.info-row span:first-child {
  color: var(--gray-600);
}

.info-row span:last-child {
  color: var(--gray-800);
  font-weight: 800;
  text-align: right;
}

.detail-poster {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-600), var(--orange-500));
  box-shadow: var(--shadow-md);
}

.related-section {
  margin-top: 52px;
}

.empty-state {
  padding: 36px;
  text-align: center;
  color: var(--gray-600);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px dashed var(--gray-300);
}

.site-footer {
  color: var(--gray-300);
  background: var(--gray-900);
}

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

.footer-logo {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-text {
  margin: 0;
  color: var(--gray-300);
}

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

.site-footer a,
.back-top {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: var(--gray-300);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.22s ease;
}

.site-footer a:hover,
.back-top:hover {
  color: var(--orange-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--gray-300);
  font-size: 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .hero-slider {
    min-height: 380px;
  }

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

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

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

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

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

  .hero {
    min-height: auto;
  }

  .hero-layout {
    padding: 62px 0 96px;
  }

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

  .hero-poster {
    min-height: 260px;
  }

  .hero-slide-info {
    padding: 24px;
  }

  .stats-grid,
  .feature-grid,
  .ranking-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .poster-frame {
    height: 220px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 12px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .site-logo {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

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

  .poster-frame {
    height: 260px;
  }

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

  .player-controls {
    padding: 12px;
  }

  .player-title {
    display: none;
  }
}
