:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --orange: #f97316;
  --pink: #ec4899;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--slate-50);
  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%;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container.narrow {
  width: min(860px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
  transition: transform 0.2s ease;
}

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

.logo-text {
  color: transparent;
  background: linear-gradient(90deg, #fb923c, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  color: #e5e7eb;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fb923c;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 62px;
  left: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e5e7eb;
  font-weight: 700;
}

.dropdown-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fb923c;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.85);
}

.nav-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 12px;
}

.nav-search input::placeholder {
  color: #cbd5e1;
}

.nav-search button,
.big-search button {
  border: 0;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  padding: 14px;
  border-radius: 0 0 18px 18px;
  background: #111827;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.mobile-panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: #e5e7eb;
  font-weight: 700;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-slide > img.poster-hidden {
  display: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
  color: #ffffff;
}

.hero-content > * {
  max-width: 680px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kicker span {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  font-size: 14px;
  font-weight: 900;
}

.hero-kicker strong {
  color: #facc15;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
}

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
}

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

.btn.subtle {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

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

.hero-poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.35), transparent 32%), radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.35), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-poster-fallback strong {
  display: block;
  font-size: clamp(28px, 5vw, 68px);
  font-weight: 950;
}

.hero-poster-fallback span {
  display: block;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 18px;
}

.content-section {
  padding: 72px 0;
}

.no-pad-top {
  padding-top: 0;
}

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

.cool-section {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

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

.category-section {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.stat-section {
  background: linear-gradient(135deg, #ecfeff, #f8fafc);
}

.dark-section,
.deep-section {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.deep-section {
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
}

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

.section-heading h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange), var(--pink));
}

.section-heading p {
  margin: 8px 0 0 18px;
  color: var(--muted);
}

.dark-section .section-heading p,
.deep-section .section-heading p {
  color: #bfdbfe;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-weight: 900;
}

.section-more span {
  font-size: 26px;
  line-height: 1;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dark-section .movie-card,
.deep-section .movie-card {
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(12px);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 68px rgba(15, 23, 42, 0.20);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ec4899 42%, #1e3a8a);
}

.large-card .poster-frame {
  aspect-ratio: 16 / 9;
}

.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 2;
}

.poster-img.poster-hidden {
  display: none;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  z-index: 1;
}

.poster-fallback strong {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 950;
}

.poster-fallback span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 3;
}

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

.play-dot {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dark-section .card-meta,
.deep-section .card-meta {
  color: #cbd5e1;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--orange);
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.dark-section .card-body p,
.deep-section .card-body p {
  color: #cbd5e1;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #ea580c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.horizontal-card .card-link {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.horizontal-card .poster-frame {
  aspect-ratio: 16 / 10;
  min-height: 112px;
}

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

.horizontal-card .card-body h3 {
  font-size: 18px;
}

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

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

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

.category-tile,
.category-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.category-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-cover img.poster-hidden {
  display: none;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.category-tile p {
  margin: 0;
  padding: 18px;
  color: var(--muted);
}

.category-card-posters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  background: #0f172a;
}

.mini-poster {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, #fb923c, #ec4899, #2563eb);
}

.mini-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-poster img.poster-hidden {
  display: none;
}

.mini-poster span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-card-body span {
  color: var(--orange);
  font-weight: 900;
}

.stat-card {
  border-radius: 32px;
  padding: 54px 40px;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.stat-card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
}

.stat-card p {
  margin: 0 auto 28px;
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-row span {
  padding: 18px 12px;
  border-radius: 18px;
  color: #047857;
  background: #ecfdf5;
  font-weight: 950;
}

.page-main,
.detail-main {
  min-height: 70vh;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 950;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.orange-hero,
.gradient-hero {
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.dark-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #0f172a);
}

.search-hero {
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.45), transparent 28%), linear-gradient(135deg, #0f172a, #1e293b);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

.detail-breadcrumb {
  padding-top: 28px;
  color: #64748b;
}

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

.filter-panel,
.search-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.search-toolbar select,
.big-search input {
  width: 100%;
  border: 1px solid #e2e8f0;
  outline: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-toolbar select:focus,
.big-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-summary {
  margin: 0 0 24px;
  color: var(--muted);
  font-weight: 800;
}

.big-search {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.big-search input {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  padding: 15px 20px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
  padding: 0 0 72px;
}

.detail-primary {
  display: grid;
  gap: 24px;
}

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

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.player-title {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 3;
  max-width: calc(100% - 40px);
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 38px 18px 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-shell:hover .player-controls,
.player-shell:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 15px;
  font-weight: 900;
}

.player-controls button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.player-state {
  position: absolute;
  left: 20px;
  bottom: 74px;
  z-index: 4;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.detail-card,
.aside-card {
  border-radius: 24px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

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

.detail-card h2,
.aside-card h2 {
  margin: 24px 0 12px;
  font-size: 24px;
  font-weight: 950;
}

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

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

.lead-text {
  color: #475569;
  font-size: 18px;
  font-weight: 700;
}

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

.detail-tags span,
.detail-tags a {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ea580c;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 900;
}

.detail-tags a {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
}

.sticky-card {
  position: sticky;
  top: 92px;
}

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

.aside-list .horizontal-card {
  box-shadow: none;
  border: 1px solid #e2e8f0;
}

.aside-list .horizontal-card .card-link {
  grid-template-columns: 116px minmax(0, 1fr);
}

.aside-list .poster-frame {
  min-height: 88px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 44px 0;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 30px;
}

.footer-logo {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.footer-inner p {
  margin: 0;
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a {
  color: #e5e7eb;
  font-weight: 800;
}

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

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

.empty-state {
  padding: 70px 20px;
  border-radius: 24px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

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

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

  .sticky-card {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

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

  .hero-content {
    padding: 72px 0 84px;
  }

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

  .movie-grid.cols-2,
  .movie-grid.cols-3,
  .movie-grid.cols-4,
  .ranking-page,
  .category-grid,
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

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

@media (max-width: 560px) {
  .container,
  .nav-wrap,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 20px;
  }

  .hero,
  .hero-content {
    min-height: 520px;
  }

  .hero-actions,
  .big-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .btn {
    width: 100%;
  }

  .content-section {
    padding: 48px 0;
  }

  .movie-grid.cols-2,
  .movie-grid.cols-3,
  .movie-grid.cols-4,
  .ranking-page,
  .category-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card .card-link,
  .aside-list .horizontal-card .card-link {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .card-body h3 {
    font-size: 18px;
  }

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

  .detail-card,
  .aside-card,
  .stat-card {
    padding: 22px;
    border-radius: 20px;
  }

  .player-start {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
