:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --white: #ffffff;
  --shadow-soft: 0 20px 55px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 34px rgba(15, 23, 42, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.6;
}

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

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

button,
input {
  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(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

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

.header-search input,
.mobile-search input,
.wide-search input,
.hero-search input,
.inline-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 11px 18px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.hero-search input:focus,
.inline-search input:focus {
  border-color: rgba(147, 197, 253, 0.9);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  color: rgba(255, 255, 255, 0.76);
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  color: var(--white);
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-panel {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-search button,
.wide-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-600);
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav,
.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-category-link {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 720px;
  color: var(--white);
  overflow: hidden;
  background: var(--slate-950);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle at 20% 20%, #93c5fd 0, transparent 22%), radial-gradient(circle at 80% 10%, #60a5fa 0, transparent 24%), radial-gradient(circle at 70% 80%, #2563eb 0, transparent 26%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.65s ease, transform 0.65s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.76) 44%, rgba(37, 99, 235, 0.42) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.2) 55%, rgba(2, 6, 23, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 60px;
  min-height: 630px;
  padding: 60px 0 104px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 24px 0 8px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero h2 {
  margin: 0 0 18px;
  color: #bfdbfe;
  font-size: clamp(24px, 3vw, 38px);
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 23px);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.callout-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--blue-600);
  padding: 14px 26px;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 13px 25px;
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.callout-card a:hover {
  transform: translateY(-2px);
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.45);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 74px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-dot.active,
.hero-dot:hover {
  border-color: #93c5fd;
  opacity: 1;
  transform: translateY(-2px);
}

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

.hero-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 30px;
}

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

.quick-search-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.92));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.quick-search-inner h2,
.quick-search-inner p {
  margin: 0;
}

.quick-search-inner p {
  color: rgba(255, 255, 255, 0.78);
}

.wide-search,
.hero-search {
  display: flex;
  gap: 12px;
}

.content-section,
.ranking-layout,
.player-section {
  padding: 72px 0;
}

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

.section-heading h2 {
  margin: 10px 0 6px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

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

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

.section-more {
  flex: 0 0 auto;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 11px 18px;
}

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

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

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

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--slate-200), var(--blue-100));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease;
}

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

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  border-radius: 50%;
  background: var(--blue-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-link:hover .play-circle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.region-pill,
.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  backdrop-filter: blur(10px);
}

.region-pill {
  left: 12px;
  top: 12px;
  background: rgba(37, 99, 235, 0.92);
}

.year-pill {
  right: 12px;
  bottom: 12px;
  background: rgba(2, 6, 23, 0.7);
}

.rank-badge {
  right: 12px;
  top: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line,
.card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-500);
  font-size: 13px;
  -webkit-box-orient: vertical;
}

.meta-line {
  margin-bottom: 8px;
  -webkit-line-clamp: 1;
}

.card-desc {
  min-height: 42px;
  margin: 0 0 12px;
  -webkit-line-clamp: 2;
}

.tag-row span {
  color: var(--blue-700);
  background: var(--blue-50);
}

.category-showcase {
  padding: 82px 0;
  color: var(--white);
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #1d4ed8);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
  transition: transform 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

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

.category-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
}

.category-card span {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.callout-section {
  padding: 0 0 86px;
}

.callout-card {
  padding: 46px;
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-600), #1e40af);
  box-shadow: var(--shadow-soft);
}

.callout-card h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.callout-card p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.82);
}

.callout-card a {
  color: var(--blue-700);
  background: var(--white);
  padding: 12px 24px;
}

.page-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), #1e3a8a);
  overflow: hidden;
}

.page-hero {
  padding: 78px 0 86px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 18% 18%, #60a5fa 0, transparent 24%), radial-gradient(circle at 82% 12%, #2563eb 0, transparent 28%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

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

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.crumb a:hover {
  color: var(--white);
}

.filter-panel {
  position: sticky;
  top: 68px;
  z-index: 20;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.inline-search {
  width: min(420px, 100%);
}

.inline-search input {
  color: var(--slate-900);
  background: var(--white);
  border-color: var(--slate-200);
}

.inline-search input::placeholder {
  color: var(--slate-500);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--white);
  padding: 9px 14px;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: var(--white);
  border-color: var(--blue-600);
  background: var(--blue-600);
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  min-height: 210px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease;
}

.category-overview-card a:hover {
  transform: translateY(-5px);
}

.overview-posters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
}

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

.overview-body {
  padding: 28px;
}

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

.overview-body p {
  margin: 0 0 18px;
  color: var(--slate-500);
}

.overview-body span {
  color: var(--blue-700);
  font-weight: 800;
}

.ranking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.ranking-side,
.side-card,
.detail-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.ranking-side {
  position: sticky;
  top: 100px;
  padding: 24px;
}

.ranking-side h2 {
  margin: 0 0 16px;
}

.ranking-side ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-side li + li {
  border-top: 1px solid var(--slate-100);
}

.ranking-side a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
}

.ranking-side span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  border-radius: 50%;
  background: var(--blue-600);
  font-size: 13px;
  font-weight: 900;
}

.ranking-side strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-side em {
  color: var(--slate-500);
  font-style: normal;
  font-size: 13px;
}

.search-hero .hero-search {
  max-width: 620px;
  margin-top: 28px;
}

.search-status {
  margin-bottom: 22px;
  color: var(--slate-500);
  font-weight: 800;
}

.detail-hero {
  padding: 60px 0 70px;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.86), rgba(37, 99, 235, 0.34)), var(--detail-image);
  background-position: center;
  background-size: cover;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.18));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
}

.detail-head-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-copy p {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags a {
  color: var(--white);
  background: rgba(37, 99, 235, 0.54);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: var(--white);
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  text-align: center;
}

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

.big-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.42);
  font-size: 34px;
}

.player-overlay strong {
  max-width: min(680px, 92%);
  font-size: clamp(20px, 3vw, 34px);
}

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

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 24px;
}

.side-card {
  padding: 24px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

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

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

.mini-related {
  display: grid;
  gap: 12px;
}

.mini-related a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-related img {
  width: 74px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.mini-related span {
  display: grid;
  color: var(--slate-900);
  font-weight: 800;
  line-height: 1.35;
}

.mini-related em {
  color: var(--slate-500);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding: 52px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

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

.site-footer p {
  margin: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

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

.movie-card.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .movie-grid,
  .dense-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }

  .header-search {
    width: 220px;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 56px 0 122px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

  .quick-search-inner,
  .detail-layout,
  .ranking-grid,
  .footer-grid,
  .detail-head-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 100%);
  }

  .detail-side,
  .ranking-side {
    position: static;
  }

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

  .category-overview-card a {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .filter-inner {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

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

  .hero h2 {
    font-size: 24px;
  }

  .hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-dots {
    max-width: 65vw;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-dot {
    flex: 0 0 64px;
    width: 64px;
  }

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

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

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

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    min-height: 42px;
    font-size: 15px;
  }

  .card-desc {
    display: none;
  }

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

  .overview-posters {
    height: 160px;
  }

  .wide-search,
  .hero-search,
  .mobile-search {
    flex-direction: column;
  }

  .detail-hero {
    padding-top: 42px;
  }

  .content-section,
  .ranking-layout,
  .player-section {
    padding: 46px 0;
  }

  .callout-card {
    padding: 30px 20px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .dense-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
