:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --rose-500: #f43f5e;
  --purple-500: #a855f7;
  --amber-500: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--sky-50), #ffffff 420px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-weight: 800;
}

.logo__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.30);
}

.logo__text {
  background: linear-gradient(90deg, var(--sky-500), var(--cyan-500));
  background-clip: text;
  color: transparent;
  font-size: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--sky-500);
}

.header-search {
  position: relative;
  width: 270px;
}

.header-search input,
.mobile-search input,
.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 10px 42px 10px 18px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--gray-500);
  background: transparent;
  transform: translateY(-50%);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 26px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-nav {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-link {
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-search {
  display: flex;
  gap: 10px;
}

.mobile-search input {
  padding: 10px 16px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
}

.hero-carousel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(120deg, #38bdf8, #22d3ee 45%, #3b82f6);
}

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

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

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.05);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(2, 132, 199, 0.92), rgba(6, 182, 212, 0.78) 52%, rgba(59, 130, 246, 0.74));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 60px;
  min-height: 610px;
  color: #ffffff;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-kicker span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  max-width: 830px;
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 30px;
  color: rgba(240, 249, 255, 0.96);
  font-size: 20px;
}

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

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

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

.btn--light {
  color: var(--sky-600);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

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

.btn--plain {
  color: var(--gray-700);
  background: var(--gray-100);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 10px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: auto;
  color: var(--sky-500);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 26px;
  box-shadow: var(--shadow-md);
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 64px 0;
}

.section--warm {
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.section--blue {
  background: linear-gradient(135deg, #f0f9ff, #ecfeff, #eff6ff);
}

.section--soft {
  background: linear-gradient(90deg, #faf5ff, #fdf2f8);
}

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

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

.section-heading__title span {
  font-size: 30px;
}

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

.section-more {
  color: var(--sky-500);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card[hidden] {
  display: none !important;
}

.movie-card__link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--sky-100), #cffafe);
}

.movie-card__thumb--wide {
  aspect-ratio: auto;
}

.movie-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card__link:hover .movie-card__thumb img,
.movie-card__list-link:hover img {
  transform: scale(1.08);
}

.movie-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card__link:hover .movie-card__overlay {
  opacity: 1;
}

.movie-card__overlay span {
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.tag {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.tag--region {
  top: 10px;
  left: 10px;
  background: var(--sky-500);
}

.tag--type {
  top: 10px;
  right: 10px;
  background: var(--purple-500);
}

.tag--year {
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.70);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber-500);
  font-weight: 900;
}

.movie-card__body {
  padding: 16px;
}

.movie-card__body h3,
.movie-card__list-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card__link:hover h3,
.movie-card__list-link:hover h3 {
  color: var(--sky-500);
}

.movie-card__body p,
.movie-card__list-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-genre,
.movie-meta {
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.movie-card--list {
  background: transparent;
}

.movie-card__list-link {
  display: flex;
  gap: 16px;
  overflow: hidden;
  min-height: 132px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card__list-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.movie-card--list .movie-card__thumb {
  width: 210px;
  flex: 0 0 210px;
}

.movie-card__list-body {
  min-width: 0;
  padding: 18px 18px 18px 0;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.movie-meta span {
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--gray-100);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: auto;
  color: var(--sky-500);
  background: rgba(255, 255, 255, 0.90);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card__list-link:hover .play-mark {
  opacity: 1;
}

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

.category-tile {
  display: grid;
  min-height: 150px;
  place-items: center;
  border-radius: 20px;
  padding: 22px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.category-tile__icon {
  font-size: 38px;
}

.category-tile strong {
  font-size: 18px;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.88);
}

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

.rank-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.rank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.rank-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.rank-card > span {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--amber-500);
  font-size: 20px;
  font-weight: 900;
}

.rank-card div {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  color: #ffffff;
}

.rank-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.rank-card small {
  color: rgba(255, 255, 255, 0.82);
}

.tag-cloud,
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-link,
.tag-filter button,
.detail-tags a {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--gray-700);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tag-link:hover,
.tag-filter button:hover,
.tag-filter button.is-active,
.detail-tags a:hover {
  color: #ffffff;
  background: var(--sky-500);
  transform: translateY(-2px);
}

.page-shell {
  min-height: 70vh;
  background: linear-gradient(180deg, var(--gray-50), #ffffff);
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--sky-500), var(--cyan-500));
}

.page-hero--category {
  background: linear-gradient(120deg, var(--sky-500), #7c3aed);
}

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

.page-hero p {
  max-width: 850px;
  margin: 0;
  color: rgba(240, 249, 255, 0.94);
  font-size: 18px;
}

.page-content {
  padding: 42px 0 68px;
}

.filter-panel {
  margin-bottom: 28px;
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filter-panel__head h2 {
  margin: 0;
}

.filter-panel__head span {
  color: var(--sky-500);
  font-weight: 800;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

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

.filter-grid label span {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  min-height: 44px;
  padding: 0 16px;
}

.view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
}

.view-actions button {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
}

.view-actions button.is-active {
  color: #ffffff;
  background: var(--sky-500);
}

.movie-grid.is-list-view {
  display: grid;
  grid-template-columns: 1fr;
}

.movie-grid.is-list-view .movie-card__link {
  display: flex;
  gap: 16px;
}

.movie-grid.is-list-view .movie-card__thumb {
  width: 210px;
  flex: 0 0 210px;
  aspect-ratio: auto;
}

.movie-grid.is-list-view .movie-card__body {
  flex: 1;
}

.empty-state {
  margin: 40px 0;
  padding: 42px;
  border-radius: 20px;
  color: var(--gray-500);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.category-overview-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 28px;
  color: #ffffff;
}

.category-overview-card__head > span {
  font-size: 40px;
}

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

.category-overview-card__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.category-overview-card__head strong {
  font-size: 28px;
}

.gradient-0 { background: linear-gradient(135deg, #fb7185, #f43f5e); }
.gradient-1 { background: linear-gradient(135deg, #60a5fa, #06b6d4); }
.gradient-2 { background: linear-gradient(135deg, #34d399, #10b981); }
.gradient-3 { background: linear-gradient(135deg, #fbbf24, #f97316); }
.gradient-4 { background: linear-gradient(135deg, #a78bfa, #ec4899); }
.gradient-5 { background: linear-gradient(135deg, #2dd4bf, #06b6d4); }
.gradient-6 { background: linear-gradient(135deg, #fb923c, #ef4444); }
.gradient-7 { background: linear-gradient(135deg, #38bdf8, #3b82f6); }

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

.category-overview-card__covers img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: var(--sky-50);
}

.category-overview-card .btn {
  margin: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.stats-grid section {
  border-radius: 22px;
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.stats-grid h2 {
  margin-top: 0;
}

.stats-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--gray-700);
  background: var(--gray-100);
}

.stats-cloud strong {
  color: var(--sky-600);
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.top-rank {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: 24px;
  padding: 26px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.top-rank img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-rank::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.82));
}

.top-rank span,
.top-rank h2,
.top-rank p {
  position: relative;
  z-index: 2;
}

.top-rank span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--amber-500);
  font-weight: 900;
}

.top-rank h2 {
  margin-top: 220px;
  margin-bottom: 8px;
}

.detail-page {
  min-height: 70vh;
  padding: 34px 0 0;
  background: linear-gradient(180deg, var(--gray-50), #ffffff);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-600);
  font-size: 14px;
}

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow-lg);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin-bottom: 10px;
  color: var(--sky-500);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  font-size: 28px;
  box-shadow: var(--shadow-md);
}

.player-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.player-note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(2, 6, 23, 0.58);
  font-size: 13px;
}

.detail-card,
.side-card,
.info-card {
  border-radius: 22px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.detail-card {
  margin-top: 24px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
}

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

.detail-meta a,
.detail-meta span,
.detail-actions button,
.detail-actions a {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
}

.detail-meta a:first-child {
  color: var(--sky-600);
  background: var(--sky-100);
}

.detail-actions button,
.detail-actions a {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--cyan-500));
}

.detail-card section {
  border-top: 1px solid var(--gray-200);
  padding-top: 22px;
  margin-top: 22px;
}

.detail-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--gray-700);
}

.detail-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-card {
  position: sticky;
  top: 88px;
}

.side-card + .side-card {
  position: static;
}

.side-card h2 {
  margin-top: 0;
}

.related-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.related-item:last-child {
  border-bottom: 0;
}

.related-item img {
  width: 116px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--sky-50);
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 15px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item small {
  color: var(--gray-500);
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--gray-500);
}

.side-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.detail-more {
  padding-bottom: 64px;
}

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

.info-card h2 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #ffffff, var(--gray-100));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 46px 0;
}

.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 7px 0;
  color: var(--gray-600);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--sky-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-slide__content,
  .detail-layout,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide__content {
    gap: 24px;
    padding: 54px 0 78px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    min-height: 60px;
  }

  .logo__text {
    font-size: 20px;
  }

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

  .hero-copy p {
    font-size: 17px;
  }

  .section {
    padding: 42px 0;
  }

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

  .movie-grid,
  .movie-grid--featured,
  .movie-grid--compact,
  .category-grid,
  .rank-grid,
  .category-overview-grid,
  .top-rank-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .movie-card__list-link,
  .movie-grid.is-list-view .movie-card__link {
    display: grid;
    gap: 0;
  }

  .movie-card--list .movie-card__thumb,
  .movie-grid.is-list-view .movie-card__thumb {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 16 / 10;
  }

  .movie-card__list-body,
  .movie-grid.is-list-view .movie-card__body {
    padding: 16px;
  }

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

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

@media (max-width: 520px) {
  .container,
  .site-header__inner,
  .mobile-panel,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .movie-grid--featured,
  .movie-grid--compact,
  .category-grid,
  .rank-grid,
  .category-overview-grid,
  .top-rank-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .page-hero {
    padding: 42px 0;
  }
}
