:root {
  --blue-950: #0b1f4d;
  --blue-900: #12347a;
  --blue-800: #1d4e9f;
  --blue-700: #1d63c7;
  --blue-600: #2563eb;
  --cyan-500: #06b6d4;
  --cyan-300: #67e8f9;
  --slate-950: #0f172a;
  --slate-900: #111827;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 48px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.22);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, 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,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-800), #0891b2);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue-700);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(8, 47, 73, 0.2);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  white-space: nowrap;
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  overflow: hidden;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.nav-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: none;
}

.nav-search input {
  width: 190px;
  padding: 8px 10px 8px 16px;
  color: var(--white);
  background: transparent;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  color: var(--blue-800);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

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

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(103, 232, 249, 0.26), transparent 25%),
    linear-gradient(135deg, var(--blue-950), var(--blue-800) 55%, #164e63);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  display: block;
  color: var(--cyan-300);
}

.hero-copy p {
  max-width: 720px;
  color: #dbeafe;
  font-size: 20px;
}

.hero-search,
.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 30px 0 22px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.hero-search input,
.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  color: var(--white);
  background: transparent;
}

.search-page-form input {
  color: var(--slate-900);
}

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

.hero-search button,
.search-page-form button {
  padding: 12px 22px;
}

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

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

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

.btn-light {
  color: var(--blue-900);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags a,
.tag,
.poster-badge,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags a {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
}

.hero-tags a:hover,
.tag:hover {
  color: var(--white);
  background: var(--blue-600);
}

.hero-slider {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: inherit;
  background: rgba(103, 232, 249, 0.16);
  filter: blur(30px);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

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

.hero-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.16) 38%, rgba(15, 23, 42, 0.92) 100%);
}

.hero-caption {
  position: absolute;
  right: 26px;
  bottom: 28px;
  left: 26px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.hero-caption small {
  color: #a5f3fc;
  font-weight: 800;
}

.hero-caption strong {
  font-size: 32px;
  line-height: 1.1;
}

.hero-caption em {
  color: #e0f2fe;
  font-style: normal;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  color: var(--white);
  background: rgba(15, 23, 42, 0.45);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 16px;
}

.hero-next {
  right: 16px;
}

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

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

.hero-dots button.is-active {
  width: 28px;
  background: var(--white);
}

.section-block {
  padding: 64px 0;
}

.muted-section {
  background: #eef6ff;
}

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

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 0;
  color: var(--slate-600);
}

.section-link,
.full-link {
  display: inline-flex;
  color: var(--blue-700);
  font-weight: 800;
}

.category-grid,
.movie-grid,
.category-overview-grid {
  display: grid;
  gap: 20px;
}

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

.category-card,
.category-overview {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: var(--shadow-sm);
}

.category-card {
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.category-icon {
  font-size: 34px;
}

.category-card strong {
  font-size: 21px;
}

.category-card small,
.category-card em {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.category-blue,
.category-rihan {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-cyan,
.category-drama {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}

.category-violet,
.category-suspense {
  background: linear-gradient(135deg, #6d28d9, #2563eb);
}

.category-red,
.category-action {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.category-pink,
.category-romance {
  background: linear-gradient(135deg, #db2777, #fb7185);
}

.category-amber,
.category-comedy {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

.category-orange,
.category-animation {
  background: linear-gradient(135deg, #ea580c, #fb923c);
}

.category-green,
.category-scifi {
  background: linear-gradient(135deg, #16a34a, #14b8a6);
}

.category-teal,
.category-series {
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.category-slate,
.category-classic {
  background: linear-gradient(135deg, #334155, #0f172a);
}

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

.movie-card,
.compact-card,
.content-card,
.side-card,
.player-card,
.ranking-card,
.rank-row {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.movie-link,
.compact-card a {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #cbd5e1, #e0f2fe);
}

.poster-wrap::after,
.compact-thumb::after,
.rank-cover::after,
.detail-poster::after {
  content: "封面";
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--slate-600);
  font-weight: 800;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.poster-wrap.is-missing::after,
.compact-thumb.is-missing::after,
.rank-cover.is-missing::after,
.detail-poster.is-missing::after {
  display: grid;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover img,
.compact-card:hover img,
.rank-row:hover img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--white);
  background: rgba(37, 99, 235, 0.9);
}

.play-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-title {
  overflow: hidden;
  color: var(--slate-900);
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--slate-500);
  font-size: 12px;
}

.card-meta span {
  padding: 2px 7px;
  background: var(--slate-100);
  border-radius: 999px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

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

.compact-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.compact-card a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.compact-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-100);
}

.compact-thumb img {
  width: 100%;
  height: 124px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compact-info {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.compact-info strong,
.rank-content strong {
  overflow: hidden;
  color: var(--slate-900);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info small,
.compact-info em,
.rank-content small,
.rank-content em {
  overflow: hidden;
  color: var(--slate-600);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-card {
  padding: 22px;
  align-self: start;
}

.ranking-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ranking-title h2 {
  margin: 0;
}

.ranking-card ol {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.ranking-card li a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--slate-50);
}

.rank-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--blue-600);
  border-radius: 10px;
  font-weight: 900;
}

.rank-title,
.rank-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-title {
  font-weight: 800;
}

.rank-meta {
  color: var(--slate-500);
  font-size: 12px;
}

.sub-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 15%, rgba(103, 232, 249, 0.26), transparent 25%),
    linear-gradient(135deg, var(--blue-900), var(--blue-700), #0891b2);
}

.sub-hero .container {
  padding: 42px 0 52px;
}

.sub-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
}

.sub-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

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

.category-overview {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview a {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

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

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

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

.example-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.example-links a {
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--slate-900);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.filter-count {
  margin: 0;
  color: var(--blue-700);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(16px);
  transform: scale(1.06);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.82));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 36px 0 58px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-top: 30px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--slate-100);
  box-shadow: var(--shadow-lg);
}

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

.detail-copy h1 {
  max-width: 850px;
}

.detail-one-line {
  max-width: 860px;
  color: #dbeafe;
  font-size: 20px;
}

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

.detail-meta span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.13);
}

.tag {
  color: var(--blue-700);
  background: #dbeafe;
}

.detail-section {
  padding-top: 40px;
}

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

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

.compact-head {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: #020617;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-shell video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 12px;
  place-items: center;
  align-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.76));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.player-start span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--blue-700);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.player-shell.is-playing .player-start {
  display: none;
}

.player-message {
  position: absolute;
  right: 16px;
  bottom: 14px;
  margin: 0;
  padding: 7px 12px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  font-size: 13px;
}

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

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

.detail-side {
  display: grid;
  gap: 22px;
  align-self: start;
}

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

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

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

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

.rank-row {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-row a {
  display: grid;
  grid-template-columns: 72px 80px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  border-radius: 16px;
  font-weight: 900;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-100);
}

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

.rank-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-hot {
  justify-self: end;
  color: var(--blue-700);
  font-weight: 900;
}

.search-page-form {
  max-width: 760px;
  background: rgba(255, 255, 255, 0.95);
}

.site-footer {
  padding: 44px 0;
  color: #dbeafe;
  background: var(--slate-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

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

.site-footer p {
  margin: 12px 0 0;
  max-width: 460px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 7px 10px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-search input {
    width: 220px;
  }

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

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

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 52px 0;
  }

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

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

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

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

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

  .rank-row a {
    grid-template-columns: 50px 70px minmax(0, 1fr);
  }

  .rank-hot {
    display: none;
  }

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

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

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

  .hero-copy h1,
  .sub-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

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

  .hero-search,
  .search-page-form {
    display: grid;
    border-radius: 22px;
  }

  .hero-search button,
  .search-page-form button {
    border-radius: 16px;
  }

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

  .hero-caption strong {
    font-size: 24px;
  }

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

  .category-card {
    min-height: 170px;
    padding: 18px;
  }

  .card-body {
    padding: 12px;
  }

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

  .detail-poster {
    width: 210px;
  }

  .player-shell,
  .player-shell video {
    min-height: 260px;
  }

  .rank-row a {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }
}
