:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --secondary-50: #fff7ed;
  --secondary-500: #f97316;
  --secondary-600: #ea580c;
  --accent-500: #ec4899;
  --dark-50: #f8fafc;
  --dark-100: #f1f5f9;
  --dark-300: #cbd5e1;
  --dark-500: #64748b;
  --dark-700: #334155;
  --dark-800: #1e293b;
  --dark-900: #0f172a;
  --shadow-soft: 0 2px 15px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-hard: 0 24px 70px rgba(15, 23, 42, 0.22);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--dark-50);
  color: var(--dark-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-soft);
}

.logo-text {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dark-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-600);
}

.search-box {
  position: relative;
}

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--dark-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input {
  min-width: 270px;
  padding: 12px 16px;
}

.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: none;
  width: min(420px, calc(100vw - 32px));
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-hard);
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--primary-50);
}

.search-result-item img {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--dark-100), var(--primary-100));
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dark-900);
}

.search-result-item small {
  color: var(--dark-500);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--dark-100);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--dark-700);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
}

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

.mobile-panel-inner {
  padding-top: 18px;
  padding-bottom: 18px;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-links .nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--dark-50);
}

.card {
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-medium);
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.text-link {
  color: var(--primary-600);
  font-weight: 800;
}

.section-block {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary-600);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--dark-500);
  font-size: 1.05rem;
  line-height: 1.8;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.compact-heading {
  margin-bottom: 20px;
}

.compact-heading h2 {
  font-size: 1.4rem;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--dark-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 620px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(249, 115, 22, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.32) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--secondary-600);
  font-weight: 750;
  box-shadow: var(--shadow-medium);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.8;
}

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

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

.hero-bottom {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.hero-search input {
  min-width: min(460px, calc(100vw - 32px));
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

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

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-thumbs {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -58px;
}

.hero-thumb {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
}

.hero-thumb img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--dark-900), var(--primary-600));
}

.hero-thumb span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 14px 12px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92));
}

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

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

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

.movie-card {
  overflow: hidden;
}

.movie-poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-100), var(--primary-100));
}

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

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

.movie-badge,
.movie-play-dot {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.movie-badge {
  top: 12px;
  left: 12px;
  min-width: 58px;
  height: 30px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
}

.movie-play-dot {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--dark-500);
  font-size: 0.86rem;
  font-weight: 700;
}

.movie-meta-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--dark-300);
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 3.4em;
  margin: 0;
  overflow: hidden;
  color: var(--dark-500);
  font-size: 0.94rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-card .tag-row {
  margin-top: 14px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 0.78rem;
  font-weight: 800;
}

.soft-section {
  background: linear-gradient(180deg, var(--secondary-50), #fff);
}

.horizontal-movies {
  display: grid;
  grid-auto-columns: minmax(220px, 260px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
}

.horizontal-movies .movie-card {
  scroll-snap-align: start;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  color: #fff;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--dark-800), var(--primary-600));
}

.category-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.9));
}

.category-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px;
}

.category-card-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.category-card-content small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.latest-block {
  padding-top: 0;
}

.ranking-card {
  padding: 24px;
}

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

.compact-movie-item {
  display: grid;
  grid-template-columns: auto 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.compact-movie-item:hover {
  background: var(--primary-50);
}

.compact-movie-item img {
  width: 56px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--dark-100), var(--primary-100));
}

.compact-movie-item strong {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  color: var(--dark-900);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-movie-item small {
  display: block;
  overflow: hidden;
  color: var(--dark-500);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  font-weight: 900;
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: var(--dark-900);
  background-position: center;
  background-size: cover;
}

.simple-page-hero {
  color: var(--dark-900);
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(234, 88, 12, 0.16), transparent 25%),
    linear-gradient(135deg, #fff, var(--primary-50));
}

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

.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.58));
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
  line-height: 1.8;
}

.simple-page-hero p {
  color: var(--dark-600);
}

.page-hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
}

.empty-message {
  display: none;
  padding: 28px;
  border-radius: 16px;
  color: var(--dark-500);
  background: #fff;
  text-align: center;
}

.empty-message.is-open {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  overflow: hidden;
}

.ranking-row-link {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.rank-number.large {
  width: 46px;
  height: 46px;
}

.ranking-row img {
  width: 92px;
  height: 124px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--dark-100), var(--primary-100));
}

.ranking-row-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.ranking-row-body small,
.ranking-row-body em {
  display: block;
  color: var(--dark-500);
  line-height: 1.7;
  font-style: normal;
}

.detail-hero {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  color: #fff;
  background: var(--dark-900);
}

.detail-hero-bg,
.detail-hero-shade {
  position: absolute;
  inset: 0;
}

.detail-hero-bg {
  background-position: center;
  background-size: cover;
  filter: blur(6px) brightness(0.65);
  transform: scale(1.04);
}

.detail-hero-shade {
  background:
    radial-gradient(circle at 78% 20%, rgba(234, 88, 12, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

.detail-title-block {
  max-width: 880px;
}

.detail-title-block > span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--secondary-50);
  font-weight: 900;
}

.detail-title-block h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-title-block p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
  line-height: 1.85;
}

.detail-tags {
  margin-top: 22px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 72px;
}

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

.player-card {
  overflow: hidden;
  background: var(--dark-900);
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.68));
  cursor: pointer;
}

.video-overlay.is-hidden {
  display: none;
}

.video-play-button {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-hard);
  font-size: 2rem;
}

.video-overlay strong {
  font-size: 1.2rem;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.detail-info {
  padding: 28px;
}

.detail-info h2 {
  margin: 30px 0 14px;
  font-size: 1.45rem;
}

.detail-info h2:first-child {
  margin-top: 0;
}

.detail-info p {
  color: var(--dark-700);
  line-height: 2;
}

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

.detail-meta-grid div {
  padding: 14px;
  border-radius: 14px;
  background: var(--dark-50);
}

.detail-meta-grid dt {
  margin-bottom: 4px;
  color: var(--dark-500);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-meta-grid dd {
  margin: 0;
  color: var(--dark-900);
  font-weight: 800;
}

.detail-meta-grid a {
  color: var(--primary-600);
}

.poster-card {
  overflow: hidden;
  padding: 14px;
}

.poster-card img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--dark-100), var(--primary-100));
}

.full-btn {
  width: 100%;
  margin-top: 14px;
}

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

.site-footer {
  color: var(--dark-300);
  background: var(--dark-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 54px;
  padding-bottom: 42px;
}

.footer-logo .logo-text {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p,
.site-footer p,
.site-footer li {
  color: var(--dark-300);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(203, 213, 225, 0.16);
  color: var(--dark-300);
}

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

  .mobile-toggle {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

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

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

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

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

@media (max-width: 820px) {
  .nav-bar {
    gap: 12px;
  }

  .header-search {
    display: none;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 680px;
  }

  .hero-bottom {
    display: grid;
    bottom: 20px;
  }

  .hero-search input {
    min-width: 100%;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .category-movie-grid,
  .preview-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .row-heading {
    display: block;
  }

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

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

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

  .ranking-row-link {
    grid-template-columns: 44px 76px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-row img {
    width: 76px;
    height: 104px;
  }
}

@media (max-width: 560px) {
  .logo-text {
    font-size: 1.05rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .page-hero-actions {
    display: grid;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .category-movie-grid,
  .preview-grid,
  .related-grid,
  .category-grid,
  .hero-thumbs {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}
