* {
  box-sizing: border-box;
}

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #0891b2;
  --teal: #0d9488;
  --orange: #f97316;
  --amber: #f59e0b;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 36%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  max-width: 1280px;
  height: 66px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  font-size: 14px;
}

.brand-name {
  font-size: 21px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 650;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.top-search {
  width: 250px;
}

.top-search input,
.mobile-search input,
.library-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  outline: none;
  padding: 0 16px;
  color: var(--text);
  background: #ffffff;
  transition: 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.library-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-search {
  margin-bottom: 6px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  background: linear-gradient(120deg, #2563eb 0%, #0891b2 52%, #0d9488 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 28%), radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 24%), linear-gradient(135deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.28));
}

.hero-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 82px 24px 120px;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 54px;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: #dffbff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy h1 span {
  color: #cffafe;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: 0.24s ease;
}

.primary-btn {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.16);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.22);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.ghost-btn.dark {
  color: var(--blue);
  background: #eff6ff;
  border-color: #bfdbfe;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags a {
  padding: 8px 12px;
  color: #e0f2fe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: 0.2s ease;
}

.hero-tags a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

.hero-board {
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
}

.hero-feature {
  position: relative;
  display: block;
  height: 370px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.16);
}

.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.hero-feature:hover img {
  transform: scale(1.06);
}

.hero-feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.86));
}

.hero-feature-text {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #ffffff;
}

.hero-feature-text strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.hero-feature-text em {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
}

.hero-mini-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hero-mini {
  position: relative;
  height: 116px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.16);
}

.hero-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.hero-mini:hover img {
  transform: scale(1.08);
}

.hero-mini span {
  position: absolute;
  inset: auto 10px 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.featured-overlap {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: -72px auto 0;
  padding: 0 24px;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 62px 24px;
}

.inner-section {
  padding-top: 58px;
  padding-bottom: 58px;
}

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

.section-head h2,
.ranking-title h2,
.ranking-box h2,
.side-card h2,
.article-block h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more,
.ranking-title a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

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

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

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

.movie-card > a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.75);
  transition: 0.28s ease;
}

.movie-card > a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  height: 205px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.large-cover {
  height: 320px;
}

.small-cover {
  height: 128px;
}

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

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

.type-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  top: 12px;
  left: 12px;
  background: var(--blue);
}

.duration-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.78);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 36px;
  background: rgba(15, 23, 42, 0);
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card a:hover .play-hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.32);
}

.card-body {
  padding: 17px 18px 18px;
}

.card-body.roomy {
  padding: 22px 22px 24px;
}

.card-body h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: 0.2s ease;
}

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

.card-body p {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card.large .card-body p {
  -webkit-line-clamp: 3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
}

.card-meta.split {
  justify-content: space-between;
}

.movie-card.horizontal > a {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  align-items: stretch;
}

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

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

.movie-card.horizontal .card-body p {
  -webkit-line-clamp: 2;
}

.soft-section {
  width: 100%;
}

.blue-soft {
  background: linear-gradient(90deg, #f8fafc, #eff6ff);
}

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

.category-card {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  padding: 26px;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: 0.26s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 18px;
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-entry {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
}

.from-blue { background: linear-gradient(135deg, #2563eb, #0891b2); }
.from-cyan { background: linear-gradient(135deg, #0891b2, #0d9488); }
.from-orange { background: linear-gradient(135deg, #f97316, #ef4444); }
.from-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.from-pink { background: linear-gradient(135deg, #db2777, #f97316); }
.from-violet { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.from-indigo { background: linear-gradient(135deg, #4f46e5, #0891b2); }
.from-red { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.from-green { background: linear-gradient(135deg, #16a34a, #0d9488); }
.from-slate { background: linear-gradient(135deg, #334155, #0f172a); }
.from-teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.from-yellow { background: linear-gradient(135deg, #ca8a04, #ea580c); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.ranking-panel,
.ranking-box,
.side-card,
.detail-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ranking-title h2 {
  font-size: 24px;
}

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

.rank-mini {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 14px;
  transition: 0.2s ease;
}

.rank-mini:hover {
  background: #eff6ff;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 13px;
  font-weight: 800;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #334155;
  font-weight: 700;
}

.rank-score {
  color: #f59e0b;
  font-weight: 800;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  background: linear-gradient(120deg, #2563eb, #0891b2, #0d9488);
  color: #ffffff;
}

.compact-hero {
  position: relative;
  overflow: hidden;
}

.compact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.22), transparent 30%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), transparent 32%), linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.28));
}

.page-hero-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px 64px;
}

.page-kicker {
  color: #dffbff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.page-hero p {
  max-width: 740px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.library-search {
  max-width: 680px;
  margin-top: 30px;
}

.library-search input {
  height: 54px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-pill {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 9px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  color: var(--blue);
  background: #ffffff;
}

.empty-state {
  display: none;
  padding: 54px 20px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.empty-state.visible {
  display: block;
}

.category-stack {
  display: grid;
  gap: 48px;
}

.category-preview {
  min-width: 0;
}

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

.ranking-box {
  padding: 22px;
}

.ranking-box h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px 72px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.ranking-row:hover {
  background: #eff6ff;
}

.ranking-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 800;
}

.ranking-row img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  background: #e0f2fe;
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong,
.ranking-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-info strong {
  color: #0f172a;
  font-size: 15px;
}

.ranking-info em {
  margin-top: 4px;
  color: #64748b;
  font-style: normal;
  font-size: 12px;
}

.ranking-value {
  color: #f59e0b;
  font-weight: 900;
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

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

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

.detail-content {
  min-width: 0;
  display: grid;
  gap: 22px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.58));
  cursor: pointer;
  transition: 0.25s ease;
}

.player-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 26px;
}

.player-cover strong {
  font-size: 20px;
}

.detail-card {
  padding: 24px;
}

.title-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.title-line h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.rating-pill {
  flex-shrink: 0;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 900;
}

.lead-text {
  margin: 18px 0 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  color: #334155;
  background: #f1f5f9;
  font-size: 14px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-row span {
  color: #1d4ed8;
  background: #eff6ff;
}

.article-block h2 {
  font-size: 25px;
  margin-bottom: 14px;
}

.article-block p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.next-prev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.next-prev a {
  padding: 14px 16px;
  border-radius: 14px;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 94px;
}

.side-card {
  padding: 20px;
}

.poster-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  background: #e0f2fe;
}

.primary-btn.full {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.side-related {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.side-related .movie-card.horizontal > a {
  grid-template-columns: 118px minmax(0, 1fr);
  box-shadow: none;
  border-color: #e2e8f0;
}

.side-related .small-cover {
  height: 104px;
}

.side-related .card-body p,
.side-related .card-meta {
  display: none;
}

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

.footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-brand p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-logo .brand-name {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

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

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

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 20px;
}

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

  .hero-wrap {
    grid-template-columns: 1fr;
    padding-bottom: 110px;
  }

  .hero-board {
    max-width: 720px;
  }

  .movie-grid.four,
  .category-grid,
  .large-category-grid,
  .ranking-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-side {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .nav-wrap {
    padding: 0 16px;
  }

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

  .hero-wrap {
    min-height: auto;
    padding: 62px 16px 94px;
    gap: 34px;
  }

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

  .hero-feature {
    height: 300px;
  }

  .featured-overlap,
  .content-section,
  .page-hero-wrap,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wide-grid.three,
  .movie-grid.three,
  .movie-grid.four,
  .movie-grid.two,
  .category-grid,
  .large-category-grid,
  .ranking-layout,
  .detail-side {
    grid-template-columns: 1fr;
  }

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

  .movie-card.horizontal > a {
    grid-template-columns: 138px minmax(0, 1fr);
  }

  .ranking-row {
    grid-template-columns: 34px 58px minmax(0, 1fr) 42px;
  }

  .ranking-row img {
    width: 58px;
    height: 48px;
  }

  .next-prev {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 40px;
  }

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

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

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

  .movie-card.horizontal > a,
  .side-related .movie-card.horizontal > a {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .small-cover {
    height: 112px;
  }

  .card-cover {
    height: 215px;
  }

  .large-cover {
    height: 300px;
  }

  .poster-card img {
    height: 340px;
  }
}
