* {
  box-sizing: border-box;
}

:root {
  --lava-50: #fff7ed;
  --lava-100: #ffedd5;
  --lava-200: #fed7aa;
  --lava-400: #fb923c;
  --lava-500: #f97316;
  --lava-600: #ea580c;
  --lava-700: #c2410c;
  --ember-500: #f59e0b;
  --volcanic-50: #fafafa;
  --volcanic-100: #f4f4f5;
  --volcanic-200: #e4e4e7;
  --volcanic-300: #d4d4d8;
  --volcanic-500: #71717a;
  --volcanic-600: #52525b;
  --volcanic-700: #3f3f46;
  --volcanic-800: #27272a;
  --volcanic-900: #18181b;
  --black: #09090b;
  --white: #ffffff;
  --shadow-soft: 0 18px 60px rgba(15, 15, 18, 0.12);
  --shadow-card: 0 12px 32px rgba(15, 15, 18, 0.1);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

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

.section-spacing {
  padding: clamp(56px, 8vw, 104px) 0;
}

.animate-fade-in {
  animation: fadeIn 0.55s ease both;
}

.text-gradient-lava {
  background: linear-gradient(90deg, var(--lava-600), var(--lava-500), var(--ember-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-volcanic {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.35), transparent 34%), linear-gradient(135deg, var(--volcanic-800), var(--volcanic-900), var(--black));
}

.bg-white {
  background: var(--white);
}

.bg-soft {
  background: linear-gradient(180deg, var(--volcanic-50), var(--white));
}

.bg-volcanic {
  background: linear-gradient(135deg, var(--volcanic-900), var(--black));
  color: var(--white);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 35px rgba(15, 15, 18, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.site-logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.36);
}

.site-logo-text {
  font-size: clamp(1.2rem, 3vw, 1.85rem);
  background: linear-gradient(90deg, var(--lava-600), var(--lava-500), var(--ember-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  font-weight: 700;
  color: var(--volcanic-800);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--lava-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--volcanic-800);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: var(--black);
}

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

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: relative;
  height: 88vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(78px, 10vw, 130px);
}

.hero-copy {
  width: min(760px, 100%);
  color: var(--white);
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--lava-100);
  background: rgba(234, 88, 12, 0.22);
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.hero h1 {
  margin-bottom: 18px;
  color: var(--white);
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.65);
}

.hero p {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.detail-meta,
.filter-panel-row,
.section-head,
.scroll-buttons,
.movie-card-foot,
.hero-dots {
  display: flex;
  align-items: center;
}

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

.btn-primary,
.btn-ghost,
.btn-inline,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  padding: 12px 24px;
  color: var(--white);
  background: var(--lava-600);
  box-shadow: 0 14px 35px rgba(234, 88, 12, 0.32);
}

.btn-primary:hover {
  background: var(--lava-700);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 45px rgba(194, 65, 12, 0.38);
}

.btn-ghost {
  padding: 11px 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.32);
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.56);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-left {
  left: 24px;
  transform: translateY(-50%);
}

.hero-arrow-right {
  right: 24px;
  transform: translateY(-50%);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--lava-500);
}

.section-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--volcanic-600);
  font-size: 1.08rem;
}

.section-head--dark p,
.section-head--dark h2 {
  color: var(--white);
}

.section-link {
  flex: none;
  color: var(--lava-700);
  font-weight: 900;
}

.section-link:hover {
  color: var(--lava-600);
  transform: translateX(3px);
}

.section-link--light {
  color: var(--lava-100);
}

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

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

.movie-grid--catalog {
  margin-top: 30px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.movie-card-image {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: var(--volcanic-100);
}

.movie-card--large .movie-card-image {
  height: 350px;
}

.movie-card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.movie-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
  transition: opacity 0.3s ease;
}

.movie-card:hover .movie-card-image::after {
  opacity: 1;
}

.movie-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--lava-600);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.movie-card-meta-top {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  padding: 4px 10px;
  color: var(--white);
  background: rgba(24, 24, 27, 0.72);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

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

.movie-card-title {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  color: var(--volcanic-900);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

.movie-card-title:hover {
  color: var(--lava-600);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--volcanic-600);
  font-size: 0.95rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.movie-card-tags span {
  padding: 3px 9px;
  color: var(--volcanic-600);
  background: var(--volcanic-100);
  border-radius: 999px;
  font-size: 0.78rem;
}

.movie-card-foot {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--volcanic-500);
  font-size: 0.86rem;
}

.movie-card-foot a {
  color: var(--lava-700);
  font-weight: 800;
}

.horizontal-list {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.horizontal-list::-webkit-scrollbar {
  display: none;
}

.horizontal-list .movie-card {
  flex: 0 0 286px;
  scroll-snap-align: start;
}

.scroll-buttons {
  gap: 10px;
}

.scroll-buttons button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--volcanic-800);
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 1.6rem;
  cursor: pointer;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

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

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.ranking-strip,
.ranking-list-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 54px 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-list-page .ranking-item {
  background: var(--white);
  border-color: var(--volcanic-200);
  box-shadow: var(--shadow-card);
}

.ranking-number {
  color: var(--lava-400);
  font-size: 1.7rem;
  font-weight: 950;
  text-align: center;
}

.ranking-thumb {
  height: 96px;
  overflow: hidden;
  border-radius: 12px;
}

.ranking-thumb img {
  height: 100%;
  object-fit: cover;
}

.ranking-item a:not(.ranking-thumb) {
  display: block;
  color: var(--white);
  font-weight: 900;
}

.ranking-list-page .ranking-item a:not(.ranking-thumb) {
  color: var(--volcanic-900);
}

.ranking-item p {
  display: -webkit-box;
  margin: 4px 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ranking-list-page .ranking-item p {
  color: var(--volcanic-600);
}

.ranking-item span:last-child {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.ranking-list-page .ranking-item span:last-child {
  color: var(--volcanic-500);
}

.page-main {
  padding-top: 76px;
}

.page-hero {
  padding: 86px 0 78px;
  color: var(--white);
  background: radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.38), transparent 28%), linear-gradient(135deg, var(--volcanic-800), var(--black));
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-overview-cover {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4px;
  height: 220px;
  overflow: hidden;
  background: var(--volcanic-100);
}

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

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.category-overview-body p {
  color: var(--volcanic-600);
}

.btn-inline {
  min-height: 40px;
  color: var(--lava-700);
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 10px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--volcanic-50), var(--white));
  box-shadow: var(--shadow-card);
}

.filter-panel-row {
  flex-wrap: wrap;
  gap: 12px;
}

.search-box {
  flex: 1 1 320px;
  position: relative;
}

.search-box span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lava-700);
  font-weight: 900;
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--volcanic-200);
  border-radius: 12px;
  color: var(--volcanic-800);
  background: var(--white);
  font: inherit;
  outline: none;
}

.search-box input {
  padding: 0 16px 0 64px;
}

.filter-select {
  width: 168px;
  padding: 0 14px;
}

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

.detail-top {
  padding: 34px 0;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.8fr);
  gap: 42px;
  padding-top: 42px;
  padding-bottom: 82px;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
}

.player-cover-icon {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--lava-600);
  box-shadow: 0 20px 48px rgba(234, 88, 12, 0.45);
  font-size: 2rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-cover:hover .player-cover-icon {
  transform: scale(1.08);
  background: var(--lava-700);
}

.player-message {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.88);
  text-align: center;
  font-weight: 800;
}

.player-message.is-visible {
  display: flex;
}

.detail-header {
  padding: 30px 0 16px;
}

.detail-header h1 {
  margin-bottom: 18px;
  color: var(--volcanic-900);
  font-size: clamp(2.1rem, 4vw, 4rem);
}

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

.detail-meta span {
  padding: 7px 12px;
  color: var(--lava-700);
  background: var(--lava-50);
  border: 1px solid var(--lava-200);
  border-radius: 999px;
  font-weight: 800;
}

.detail-one-line {
  color: var(--volcanic-700);
  font-size: 1.14rem;
  font-weight: 700;
}

.detail-section {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-section h2,
.detail-tags h2,
.detail-aside h2 {
  margin-bottom: 14px;
  font-size: 1.8rem;
}

.detail-section p {
  margin-bottom: 0;
  color: var(--volcanic-700);
  font-size: 1.05rem;
}

.review-box {
  background: linear-gradient(135deg, var(--lava-50), #fffaf0);
}

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

.detail-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--lava-700);
  background: var(--white);
  border: 1px solid var(--lava-200);
  font-weight: 800;
}

.detail-aside {
  position: sticky;
  top: 104px;
  align-self: start;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.compact-card-image {
  height: 116px;
  overflow: hidden;
  border-radius: 12px;
}

.compact-card-image img {
  height: 100%;
  object-fit: cover;
}

.compact-card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--volcanic-900);
  font-weight: 900;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card p {
  display: -webkit-box;
  margin: 6px 0;
  overflow: hidden;
  color: var(--volcanic-600);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card span {
  color: var(--volcanic-500);
  font-size: 0.8rem;
}

.site-footer {
  color: var(--volcanic-300);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 32px;
}

.footer-logo .site-logo-text {
  color: transparent;
}

.footer-brand p {
  max-width: 520px;
  margin-top: 16px;
  margin-bottom: 0;
}

.site-footer h3 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.08rem;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: var(--lava-400);
}

.footer-bottom {
  padding: 22px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

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

  .detail-aside {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: grid;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 38px rgba(15, 15, 18, 0.12);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .mobile-nav.is-open {
    max-height: 320px;
    padding: 12px 16px 18px;
  }

  .mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--volcanic-800);
    font-weight: 800;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.is-active {
    color: var(--lava-700);
    background: var(--lava-50);
  }

  .hero,
  .hero-content {
    min-height: 78vh;
    height: 78vh;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .movie-grid--featured,
  .category-grid,
  .category-overview-grid,
  .ranking-strip,
  .ranking-list-page,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container-custom {
    width: min(100% - 24px, 1280px);
  }

  .header-inner {
    height: 66px;
  }

  .site-logo-mark {
    width: 36px;
    height: 36px;
  }

  .page-main {
    padding-top: 66px;
  }

  .hero,
  .hero-content {
    min-height: 74vh;
    height: 74vh;
  }

  .hero-content {
    padding-bottom: 76px;
  }

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

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

  .movie-card-image,
  .movie-card--large .movie-card-image {
    height: 260px;
  }

  .ranking-item {
    grid-template-columns: 42px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-thumb {
    height: 88px;
  }

  .compact-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
