:root {
  --lava-50: #fff7ed;
  --lava-100: #ffedd5;
  --lava-200: #fed7aa;
  --lava-400: #fb923c;
  --lava-500: #f97316;
  --lava-600: #ea580c;
  --lava-700: #c2410c;
  --ember-400: #f59e0b;
  --ember-500: #d97706;
  --volcanic-50: #f8fafc;
  --volcanic-100: #f1f5f9;
  --volcanic-200: #e2e8f0;
  --volcanic-500: #64748b;
  --volcanic-600: #475569;
  --volcanic-700: #334155;
  --volcanic-800: #1e293b;
  --volcanic-900: #0f172a;
  --black: #020617;
  --white: #ffffff;
  --shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
  --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.24);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--volcanic-900);
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
.movie-card-title,
.logo-text,
.footer-logo {
  font-family: Poppins, Inter, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.section-spacing {
  padding: 76px 0;
}

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

.bg-soft {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

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

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

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

.inner-page .site-header,
.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.35);
}

.logo-text {
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  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: 28px;
}

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

.home-page .site-header:not(.is-scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.88);
}

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

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

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

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--volcanic-800);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-page .site-header:not(.is-scrolled) .mobile-toggle span {
  background: var(--white);
}

.mobile-nav {
  display: none;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 38%, rgba(249, 115, 22, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 98px;
}

.hero-copy {
  width: min(760px, 100%);
  color: var(--white);
  animation: fadeUp 0.7s ease both;
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.38);
  backdrop-filter: blur(8px);
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}

.hero-desc {
  max-width: 700px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.tag-row,
.detail-tags,
.detail-meta-row,
.detail-poster-meta,
.hero-actions,
.quick-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hero-tags {
  gap: 10px;
  margin-top: 22px;
}

.hero-tag,
.tag-pill,
.detail-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tag {
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions {
  gap: 14px;
  margin-top: 30px;
}

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

.btn-primary {
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.33);
}

.btn-primary:hover,
.category-overview-main:hover span {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.42);
}

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

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.38);
  font-size: 34px;
  line-height: 1;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.62);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-search-section {
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.quick-search,
.search-panel,
.list-toolbar {
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search label,
.search-panel label,
.list-toolbar label {
  display: block;
  margin-bottom: 12px;
  color: var(--volcanic-800);
  font-weight: 800;
}

.quick-search-row {
  gap: 12px;
}

.quick-search input,
.search-panel input,
.list-toolbar input {
  flex: 1 1 260px;
  min-height: 48px;
  border: 1px solid var(--volcanic-200);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--volcanic-900);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.search-panel input:focus,
.list-toolbar input:focus {
  border-color: var(--lava-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

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

.section-heading h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--lava-600), var(--lava-500), var(--ember-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--volcanic-600);
  font-size: 18px;
  line-height: 1.7;
}

.section-more {
  color: var(--lava-700);
  background: var(--lava-50);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.poster-frame {
  position: relative;
  display: block;
  height: 330px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--volcanic-200), var(--lava-100));
}

.movie-card-large .poster-frame {
  height: 430px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.86) 100%);
  opacity: 0.18;
  transition: opacity 0.3s ease;
}

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

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-card-title {
  color: var(--volcanic-900);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  transition: color 0.25s ease;
}

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

.movie-card-desc {
  color: var(--volcanic-600);
  font-size: 14px;
  line-height: 1.65;
}

.movie-card-meta {
  color: var(--volcanic-500);
  font-size: 13px;
  font-weight: 650;
}

.tag-row {
  gap: 8px;
  margin-top: auto;
}

.tag-pill {
  padding: 5px 9px;
  color: var(--volcanic-700);
  background: var(--volcanic-100);
  font-size: 12px;
}

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

.category-tile {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(251, 146, 60, 0.45), transparent 34%),
    linear-gradient(135deg, var(--volcanic-900), var(--volcanic-800));
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.carousel-shell {
  position: relative;
}

.movie-carousel {
  display: flex;
  gap: 22px;
  padding: 8px 4px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.movie-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.carousel-control {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--volcanic-900);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 30px;
}

.carousel-left {
  left: -16px;
}

.carousel-right {
  right: -16px;
}

.ranking-list,
.related-list {
  display: grid;
  gap: 16px;
}

.wide-list {
  gap: 18px;
}

.movie-card-horizontal .movie-card-link {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 170px;
}

.movie-card-horizontal .poster-frame {
  height: 100%;
  min-height: 170px;
}

.movie-card-horizontal .movie-card-body {
  justify-content: center;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 22% 18%, rgba(249, 115, 22, 0.34), transparent 26%),
    linear-gradient(135deg, var(--volcanic-900), var(--black));
}

.page-hero {
  padding: 92px 0 82px;
}

.compact-hero {
  background-image:
    linear-gradient(135deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.74)),
    var(--hero-cover);
  background-position: center;
  background-size: cover;
}

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

.page-kicker {
  margin-bottom: 12px;
  color: var(--lava-200);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p:not(.page-kicker) {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
}

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

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

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

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.84);
}

.category-overview-main {
  display: block;
  padding: 26px;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 16%, rgba(251, 146, 60, 0.45), transparent 34%),
    linear-gradient(135deg, var(--volcanic-900), var(--volcanic-800));
}

.category-overview-main h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.category-overview-main p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.category-overview-main span {
  width: fit-content;
  margin-top: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
}

.category-sample-links {
  display: grid;
  gap: 10px;
  padding: 20px 26px 24px;
}

.category-sample-links a {
  color: var(--volcanic-700);
  font-weight: 700;
}

.category-sample-links a:hover {
  color: var(--lava-600);
}

.list-toolbar {
  margin-bottom: 26px;
}

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

.search-panel {
  margin-bottom: 30px;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 44px;
  text-align: center;
  color: var(--volcanic-600);
  border-radius: var(--radius-lg);
  background: var(--volcanic-50);
}

.detail-hero {
  padding: 42px 0 54px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(234, 88, 12, 0.26), rgba(2, 6, 23, 0.7));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-layer-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
  font-size: 34px;
}

.play-layer-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.detail-poster-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.detail-poster-card img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.detail-poster-meta {
  gap: 8px;
  padding: 16px;
}

.detail-poster-meta span {
  padding: 6px 10px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 13px;
  font-weight: 800;
}

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

.detail-main-content h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  color: var(--volcanic-900);
}

.detail-one-line {
  margin-top: 18px;
  color: var(--volcanic-700);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta-row {
  gap: 10px;
  margin-top: 22px;
}

.detail-meta-row span {
  padding: 8px 12px;
  color: var(--volcanic-700);
  border-radius: 999px;
  background: var(--volcanic-100);
  font-weight: 800;
}

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

.detail-tag {
  padding: 8px 12px;
  color: var(--lava-700);
  background: var(--lava-50);
  border: 1px solid var(--lava-200);
}

.detail-block {
  margin-top: 40px;
}

.detail-block h2,
.related-column h2 {
  margin-bottom: 18px;
  color: var(--volcanic-900);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.story-text,
.detail-block p {
  color: var(--volcanic-700);
  font-size: 17px;
  line-height: 1.9;
}

.story-text p + p {
  margin-top: 12px;
}

.review-block {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--lava-50), #fff7ed 50%, #fff);
  border: 1px solid var(--lava-100);
}

.related-column {
  position: sticky;
  top: 110px;
  align-self: start;
}

.site-footer {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.24), transparent 30%),
    linear-gradient(135deg, var(--volcanic-900), var(--black));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 58px 0 36px;
}

.footer-logo {
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 900;
}

.footer-brand p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 18px 0 28px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .detail-poster-card {
    display: none;
  }

  .related-column {
    position: static;
  }
}

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

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 80px;
    z-index: 49;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-strong);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .menu-open .mobile-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

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

  .hero-slider {
    height: 78vh;
    min-height: 560px;
  }

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

  .hero-arrow {
    display: none;
  }

  .section-spacing {
    padding: 58px 0;
  }

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

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

  .movie-card-horizontal .movie-card-link {
    grid-template-columns: 130px 1fr;
    min-height: 150px;
  }

  .poster-frame {
    height: 270px;
  }

  .movie-card-large .poster-frame {
    height: 320px;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 70px;
  }

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

  .logo-text {
    font-size: 20px;
  }

  .mobile-nav {
    top: 70px;
  }

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

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-desc {
    font-size: 16px;
  }

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

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

  .quick-search-section {
    margin-top: 0;
  }

  .quick-search,
  .search-panel,
  .list-toolbar {
    border-radius: 0;
    margin-left: -12px;
    margin-right: -12px;
  }

  .movie-grid,
  .latest-grid,
  .all-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-card-link {
    grid-template-columns: 112px 1fr;
  }

  .poster-frame {
    height: 360px;
  }

  .movie-card-horizontal .poster-frame {
    min-height: 148px;
  }

  .detail-hero,
  .page-hero {
    padding-top: 64px;
  }

  .player-card {
    border-radius: 16px;
  }
}
