/* ==========================================================
   FUNILM CINEMA CATALOG - MODERN GRADIENT THEME
   Layered Ambient Gradients, Seamless Backdrop, Tightened Footer
   ========================================================== */

:root {
  --font-pixel: "Pixelify Sans", "Press Start 2P", -apple-system, monospace;
  --pixel-border: 2px solid #382e70;
  --pixel-shadow: 3px 3px 0px #000000;
  --pixel-shadow-accent: 3px 3px 0px #ff4327;
  --pixel-shadow-cyan: 3px 3px 0px #0284c7;

  --movie-bg: #070714;
  --movie-bg-subtle: #0f0d24;
  --movie-surface: rgba(18, 16, 38, 0.88);
  --movie-surface-elevated: rgba(26, 22, 52, 0.94);
  --movie-surface-hover: rgba(36, 30, 72, 0.98);
  --movie-border: #382e70;
  --movie-border-subtle: #241d4c;
  --movie-border-hover: rgba(56, 189, 248, 0.8);
  
  --tg-blue: #0284c7;
  --tg-cyan: #38bdf8;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  
  --text-main: #ffffff;
  --text-sub: #ffffff;
  --text-muted: #c4b5fd;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

body.movie-page {
  background-color: var(--movie-bg);
  background-image: 
    radial-gradient(ellipse 900px 500px at 50% -80px, rgba(14, 165, 233, 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 700px 450px at 10% 300px, rgba(99, 102, 241, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 650px 450px at 90% 500px, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #100e28 0%, #0c0a20 45%, #070714 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.catalog-page {
  --movie-bg: #070714;
  --movie-bg-subtle: #0f0d24;
  --movie-surface: rgba(18, 16, 38, 0.88);
  --movie-surface-elevated: rgba(26, 22, 52, 0.94);
  --movie-surface-hover: rgba(36, 30, 72, 0.98);
  --movie-border-hover: rgba(255, 77, 46, 0.8);
  background-color: #070714;
  background-image:
    radial-gradient(ellipse 900px 520px at 85% -100px, rgba(255, 67, 39, 0.2), transparent 68%),
    radial-gradient(ellipse 760px 520px at 5% 420px, rgba(108, 53, 255, 0.16), transparent 64%),
    linear-gradient(180deg, #0f0d24 0%, #0a091a 46%, #070714 100%);
}

.catalog-page .movie-ambient__orb--one {
  background: radial-gradient(circle, #ff4327 0%, #ff704f 42%, transparent 70%);
}

.catalog-page .movie-ambient__orb--two {
  background: radial-gradient(circle, #6c35ff 0%, #4422a3 45%, transparent 70%);
}

.catalog-page .movie-ambient__orb--three {
  background: radial-gradient(circle, #ff4d2e 0%, transparent 70%);
}

/* Ambient glow orbs in background */
.movie-ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.movie-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
}

.movie-ambient__orb--one {
  top: -100px;
  right: 12%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #0284c7 0%, #38bdf8 40%, transparent 70%);
}

.movie-ambient__orb--two {
  top: 260px;
  left: -80px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #6366f1 0%, #4338ca 45%, transparent 70%);
}

.movie-ambient__orb--three {
  top: 600px;
  right: -60px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  opacity: 0.2;
}

/* Sticky Top Navigation */
.movie-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 23, 37, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--movie-border);
  height: 68px;
  display: flex;
  align-items: center;
  padding-inline: clamp(20px, 4vw, 44px);
}

.movie-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.movie-nav__left {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  min-width: 0;
}

.movie-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.movie-nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.movie-nav__links a:hover,
.movie-nav__links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.movie-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  color: #ffffff;
  font-size: .92rem;
  text-decoration: none;
}

.movie-nav .brand__mark {
  display: block;
  width: 40px;
  height: 40px;
  background-image: url(/static/media/logo.png?v=20261007-pixel);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  color: transparent;
  overflow: hidden;
  font-size: 0;
  flex-shrink: 0;
  border: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .movie-nav .brand {
    gap: 8px;
    font-size: .84rem;
  }

  .movie-nav .brand__mark {
    width: 32px;
    height: 32px;
  }
}

.movie-nav__tg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #38bdf8;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}

.movie-nav__tg-pill:hover {
  background: rgba(14, 165, 233, 0.3);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.movie-nav__tg-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Ambient Hero Backdrop Image (Seamless Top & Bottom Fade + Ambient Blur) */
.backdrop-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 680px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 68px,
    rgba(0, 0, 0, 0.95) 150px,
    rgba(0, 0, 0, 0.95) 45%,
    rgba(0, 0, 0, 0.25) 80%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 68px,
    rgba(0, 0, 0, 0.95) 150px,
    rgba(0, 0, 0, 0.95) 45%,
    rgba(0, 0, 0, 0.25) 80%,
    transparent 100%
  );
}

.backdrop-hero__img {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  opacity: 0.65;
  filter: blur(2px) saturate(1.25) contrast(1.06);
  transform: scale(1.03);
}

.backdrop-hero__overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(18, 23, 37, 0.75) 0%, rgba(18, 23, 37, 0.2) 25%, rgba(18, 23, 37, 0.75) 60%, var(--movie-bg) 100%),
    linear-gradient(to bottom, rgba(18, 23, 37, 0.85) 0%, transparent 20%, rgba(18, 23, 37, 0.65) 60%, var(--movie-bg) 100%);
}

/* Main Container */
.movie-content {
  position: relative;
  z-index: 1;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.breadcrumbs .sep {
  opacity: 0.45;
}

.breadcrumbs .active {
  color: var(--text-main);
  font-weight: 500;
}

/* Mobile-Only Header Block (Above poster on phones) */
.movie-header-mobile {
  display: none;
  margin-bottom: 20px;
}

.movie-header-mobile__title {
  font-family: var(--font-pixel);
  font-size: clamp(1.85rem, 5vw, 2.3rem);
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-shadow: 2px 2px 0px #000000;
  line-height: 1.15;
}

.movie-header-mobile__orig {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 14px 0;
  font-weight: 400;
}

/* Two-Column Grid */
.movie-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 40px;
  align-items: start;
}

/* Left Column: Poster & Desktop Promo Code */
.movie-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #192134;
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow), 0 0 20px rgba(14, 165, 233, 0.2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.2s ease;
}

.poster-wrap:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000, 0 0 30px rgba(14, 165, 233, 0.35);
  border-color: rgba(56, 189, 248, 0.85);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: #192134;
  color: #64748b;
}

/* Promo Code Box */
.code-box {
  background: #12141f;
  border: 2px solid #fbbf24;
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--pixel-shadow), 0 0 16px rgba(251, 191, 36, 0.15);
}

.code-box--mobile {
  display: none;
  margin-top: 4px;
}

.code-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  font-weight: 700;
}

.code-box__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090b12;
  border-radius: 4px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.code-box__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.06em;
}

.code-box__btn {
  font-family: var(--font-pixel);
  background: #252838;
  border: 1px solid #fbbf24;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000000;
  transition: all 0.15s ease;
}

.code-box__btn:hover {
  background: #363b50;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.code-box__btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Right Column */
.movie-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.movie-header-desktop h1 {
  font-family: var(--font-pixel);
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 8px 0;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-shadow: 3px 3px 0px #000000;
}

.movie-orig-title {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

/* Meta Badges Row */
.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.m-badge {
  font-family: var(--font-pixel);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  background: #151230;
  border: 2px solid #382e70;
  box-shadow: 2px 2px 0px #000000;
  color: var(--text-main);
}

.m-badge--rating {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: var(--gold-light);
  box-shadow: 2px 2px 0px #000000;
}

.m-badge--format {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 2px 2px 0px #000000;
}

.genre-badge {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: #c4b5fd;
  background: #151230;
  padding: 4px 10px;
  border-radius: 4px;
  border: 2px solid #382e70;
  box-shadow: 2px 2px 0px #000000;
}

/* ==========================================================
   GIANT PRIMARY TELEGRAM CTA BUTTON (DOMINANT & FULL FOCUS)
========================================================== */
.giant-cta-wrapper {
  margin-top: 4px;
  margin-bottom: 2px;
}

.btn-giant-tg {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #0284c7;
  border: 2px solid #38bdf8;
  color: #ffffff;
  padding: 18px 26px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 4px 4px 0px #000000, 0 0 20px rgba(14, 165, 233, 0.3);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-giant-tg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transition: left 0.75s ease;
}

.btn-giant-tg:hover {
  background: #0ea5e9;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000, 0 0 30px rgba(56, 189, 248, 0.5);
}

.btn-giant-tg:hover::before {
  left: 100%;
}

.btn-giant-tg:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

.btn-giant-tg__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  box-shadow: 2px 2px 0px #000000;
}

.btn-giant-tg__icon svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
  shape-rendering: crispEdges;
  filter: drop-shadow(1px 1px 0px #000);
}

.btn-giant-tg__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-giant-tg__title {
  font-family: var(--font-pixel);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.2;
}

.btn-giant-tg__sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* Trust Badges directly under CTA */
.cta-trust-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  padding: 0 4px;
}

.cta-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #c4b5fd;
  font-weight: 500;
}

.cta-trust-bar svg {
  width: 15px;
  height: 15px;
  stroke: #38bdf8;
  flex-shrink: 0;
  shape-rendering: crispEdges;
  filter: drop-shadow(1px 1px 0px #000);
}

/* Synopsis Card */
.synopsis-card {
  background: #110e28;
  border: var(--pixel-border);
  border-radius: 6px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--pixel-shadow);
}

.synopsis-card h2 {
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.03em;
}

.synopsis-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-sub);
}

/* Details Grid: Balanced 2x2 + Full-Width Cast */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-item {
  background: #110e28;
  border: var(--pixel-border);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--pixel-shadow);
}

.detail-item--full {
  grid-column: 1 / -1;
}

.detail-item .label {
  font-family: var(--font-pixel);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c4b5fd;
  font-weight: 600;
}

.detail-item .val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* 3-Step Guide Section */
.guide-section {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guide-section__title {
  font-family: var(--font-pixel);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.03em;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-card {
  background: #110e28;
  border: var(--pixel-border);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--pixel-shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.guide-card:hover {
  border-color: #38bdf8;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.guide-card__num {
  font-family: var(--font-pixel);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #0284c7;
  border: 1px solid #38bdf8;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px #000000;
}

.guide-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-card h3 {
  font-family: var(--font-pixel);
  margin: 0;
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.guide-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Footer - Tightly Attached, No Giant Empty Void */
.movie-footer {
  margin-top: 32px;
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid var(--movie-border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.movie-footer a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ==========================================================
   RESPONSIVE LAYOUT (TABLET & MOBILE)
========================================================== */

/* Tablet (721px - 980px): Maintain clean 2-column layout */
@media (max-width: 980px) and (min-width: 721px) {
  .movie-grid {
    grid-template-columns: 260px 1fr;
    gap: 28px;
  }
  
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Mobile (<= 720px): Streamlined single-column funnel */
@media (max-width: 720px) {
  .movie-content {
    padding-top: 14px;
    padding-bottom: 24px;
  }

  .breadcrumbs {
    margin-bottom: 16px;
    font-size: 0.8rem;
  }

  .movie-header-mobile {
    display: block;
    margin-bottom: 18px;
  }

  .movie-header-mobile__title {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .movie-header-mobile .badge-row {
    gap: 6px;
  }

  .movie-header-mobile .m-badge {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  .movie-header-mobile .genre-badge {
    padding: 3px 8px;
    font-size: 0.74rem;
  }

  .movie-header-desktop {
    display: none !important;
  }

  .code-box--desktop {
    display: none !important;
  }

  .code-box--mobile {
    display: flex !important;
  }

  .movie-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .movie-side {
    position: static;
    width: 100%;
    max-width: 240px;
    margin-inline: auto;
  }

  .poster-wrap {
    max-width: 240px;
    margin-inline: auto;
    border-radius: 14px;
  }

  .movie-main {
    gap: 18px;
  }

  .btn-giant-tg {
    padding: 16px 18px;
    gap: 14px;
    border-radius: var(--radius-md);
  }

  .btn-giant-tg__title {
    font-size: 1.15rem;
  }

  .btn-giant-tg__sub {
    font-size: 0.8rem;
  }

  .btn-giant-tg__icon {
    width: 44px;
    height: 44px;
  }

  .btn-giant-tg__icon svg {
    width: 24px;
    height: 24px;
  }

  .cta-trust-bar {
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
  }

  .cta-trust-bar span {
    font-size: 0.78rem;
  }

  .synopsis-card {
    padding: 18px 20px;
  }

  .synopsis-card p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-item--full {
    grid-column: auto;
  }

  .detail-item {
    padding: 14px 16px;
  }

  .guide-section {
    margin-top: 32px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-card {
    padding: 16px 18px;
  }

  .backdrop-hero {
    height: 380px;
  }

  .movie-footer {
    margin-top: 30px;
    padding-top: 18px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* ==========================================================
   CATALOG PAGE STYLES (Grid, Search, Toolbar, Cards)
========================================================== */
.catalog-hero {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-hero__title {
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0px #000000;
  line-height: 1.15;
}

.catalog-hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 680px;
  line-height: 1.6;
}

/* Search Bar */
.catalog-search-form {
  margin-top: 4px;
  max-width: 640px;
}

.catalog-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(22, 30, 48, 0.95);
  border: var(--pixel-border);
  border-radius: 4px;
  padding: 6px 8px 6px 16px;
  gap: 10px;
  box-shadow: var(--pixel-shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search-wrap:focus-within {
  border-color: #38bdf8;
  box-shadow: var(--pixel-shadow-cyan);
}

.catalog-search-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  flex-shrink: 0;
  shape-rendering: crispEdges;
  filter: drop-shadow(1px 1px 0px #000);
}

.catalog-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

.catalog-search-input::placeholder {
  color: #818cf8;
}

.catalog-search-btn {
  font-family: var(--font-pixel);
  letter-spacing: 0.05em;
  background: #ff4327;
  color: #ffffff;
  border: 2px solid #ff704f;
  border-radius: 4px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000000;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.catalog-search-btn:hover {
  background: #ff5a43;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.catalog-search-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

/* Toolbar (Filter & Sort) */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #241d4c;
}

.catalog-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filter-pill {
  font-family: var(--font-pixel);
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #c4b5fd;
  background: #151230;
  border: 2px solid #382e70;
  box-shadow: 2px 2px 0px #000000;
  text-decoration: none;
  transition: all 0.15s ease;
}

.catalog-filter-pill:hover {
  color: #ffffff;
  border-color: #6366f1;
  background: #1c1840;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.catalog-filter-pill.is-active {
  color: #ffffff;
  background: #ff4327;
  border-color: #ff704f;
  box-shadow: 2px 2px 0px #000000;
}

.catalog-sort-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-sort-label {
  font-family: var(--font-pixel);
  font-size: 0.84rem;
  color: #c4b5fd;
  font-weight: 600;
}

.catalog-sort-link {
  font-family: var(--font-pixel);
  font-size: 0.84rem;
  font-weight: 600;
  color: #c4b5fd;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.catalog-sort-link:hover,
.catalog-sort-link.is-active {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 1px 1px 0px #000000;
}

/* Movie Cards Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px 18px;
  margin-top: 24px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover {
  transform: translateY(-4px);
}

.catalog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 8px;
  border: var(--pixel-border);
  border-radius: 6px;
  background: #110e28;
  box-shadow: var(--pixel-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-card:hover .catalog-card__link {
  border-color: #ff4327;
  box-shadow: 4px 4px 0px #000000;
}

.catalog-card__poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #192134;
  border: 1px solid #282836;
  box-shadow: 2px 2px 0px #000000;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-card:hover .catalog-card__poster-wrap {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 3px 3px 0px #000000;
}

.catalog-card__poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.catalog-card:hover .catalog-card__poster-wrap img {
  transform: scale(1.04);
}

.catalog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: #1a2236;
  color: #64748b;
}

.catalog-card__badges {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

.catalog-card__format {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 2px;
  background: #080718;
  color: #38bdf8;
  border: 1px solid #0284c7;
  box-shadow: 1px 1px 0px #000000;
}

.catalog-card__rating {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 2px;
  background: #080718;
  color: #fbbf24;
  border: 1px solid #d97706;
  box-shadow: 1px 1px 0px #000000;
}

.catalog-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 20, 34, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.catalog-card:hover .catalog-card__overlay {
  opacity: 1;
}

.catalog-card__cta-btn {
  font-family: var(--font-pixel);
  letter-spacing: 0.05em;
  background: #ff4327;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid #ff704f;
  box-shadow: 2px 2px 0px #000000;
}

.catalog-card__meta {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.catalog-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.catalog-card__orig {
  opacity: 0.75;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination */
.catalog-pagination {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pagination-btn {
  font-family: var(--font-pixel);
  background: #14141d;
  border: var(--pixel-border);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--pixel-shadow);
  transition: all 0.15s ease;
}

.pagination-btn:hover {
  background: #1e1e2c;
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.pagination-info {
  font-family: var(--font-pixel);
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Empty State */
.catalog-empty {
  margin-top: 40px;
  padding: 60px 20px;
  text-align: center;
  background: var(--movie-surface);
  border: 1px solid var(--movie-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.catalog-empty__icon {
  font-size: 3rem;
}

.catalog-empty h2 {
  color: #ffffff;
  font-size: 1.4rem;
  margin: 0;
}

.catalog-empty p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0;
  font-size: 0.95rem;
}

.catalog-empty__btn {
  margin-top: 8px;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #38bdf8;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Catalog Mobile Adjustments */
@media (max-width: 720px) {
  body.catalog-page {
    background-attachment: scroll;
  }

  .catalog-page .movie-ambient {
    display: none;
  }

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

  .catalog-card__link {
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  }

  .catalog-card__poster-wrap {
    border-radius: 9px;
  }

  .catalog-card__badges {
    inset: 6px 6px auto;
    gap: 4px;
  }

  .catalog-card__format,
  .catalog-card__rating {
    padding: 2px 5px;
    font-size: 0.6rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .catalog-card__meta {
    padding-top: 7px;
  }

  .catalog-card__title {
    font-size: 0.8rem;
  }

  .catalog-card__sub {
    gap: 4px;
    font-size: 0.68rem;
  }

  .movie-nav,
  .catalog-search-wrap {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .catalog-hero__title {
    font-size: 1.75rem;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .movie-nav {
    height: 60px;
    padding-inline: 14px;
  }

  .movie-nav__left {
    gap: 12px;
  }

  .movie-nav__links {
    gap: 4px;
  }

  .movie-nav__links a {
    padding: 5px 8px;
    font-size: 0.82rem;
  }

  .movie-nav__tg-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .movie-nav__links {
    display: none;
  }

  .movie-nav__tg-pill span {
    display: none;
  }

  .movie-nav__tg-pill {
    padding: 8px;
    border-radius: 50%;
  }
}

@media (hover: none) {
  .catalog-card:hover,
  .catalog-card:hover .catalog-card__poster-wrap img,
  .catalog-search-btn:hover {
    transform: none;
  }

  .catalog-card__overlay {
    display: none;
  }
}

@media (max-width: 340px) {
  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 250px);
    margin-inline: auto;
  }
}
