/* AI 生意自駕首頁：Boss IP 同款廣告大片首屏——雙層影片（氛圍模糊層＋清晰主體靠右），文案疊在左側留白。 */
.ma-film-hero {
  isolation: isolate;
  height: 100svh;
  min-height: 620px;
  max-height: none;
  background: #06080b;
}

.ma-film-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #06080b;
}

.ma-film-ambient,
.ma-film-video {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 氛圍延伸層：影片自身的模糊放大版鋪滿全幅，顏色永遠與主畫面同步 */
.ma-film-ambient {
  inset: 0;
  transform: scale(1.12);
  filter: blur(26px) brightness(.45);
}

/* 主影片：全裝置滿版鋪滿，清晰主體置中，文字靠左壓在對比漸層上 */
.ma-film-video {
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  object-position: center center;
}

@media (min-width: 1024px) {
  .ma-film-video {
    object-position: 62% center;
  }
}

/* 文字對比漸層：手機由下往上、桌機由左往右 */
.ma-film-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, .18) 34%, rgba(0, 0, 0, .38) 62%, rgba(0, 0, 0, .82) 100%);
}

@media (min-width: 1024px) {
  .ma-film-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .34) 42%, rgba(0, 0, 0, .08) 68%, transparent 100%);
  }
}

.ma-film-content {
  position: relative;
  z-index: 3;
}

/* 文案整體下移，避免壓在影片人物臉上 */
@media (min-width: 641px) {
  .ma-film-hero .ma-slide-content {
    justify-content: center;
    padding-top: clamp(4rem, 16vh, 9rem);
  }
}

.ma-film-hero h1 {
  margin: 0;
  max-width: 17em;
  color: #fffaf2;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.55;
  text-shadow: 0 2px 34px rgba(0, 0, 0, .58);
}

.ma-film-content .c9-kicker { color: #ddc27f; }
.ma-film-content .ma-slide-sub {
  color: #eee6d8;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .58);
}
.ma-film-content .ma-hero-actions { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.ma-film-content .ma-hero-secondary { color: #e2c77f; border-color: rgba(226, 199, 127, .58); }
.ma-film-content .c9-btn { border-color: #f5f1e9; background: #f5f1e9; color: #1b1815; }
.ma-film-content .c9-btn:hover { border-color: #fff; background: #fff; }

.ma-film-copy { opacity: 1; transform: none; }
.ma-page .topbar.topbar-transparent .brand-name-text,
.ma-page .topbar.topbar-transparent .btn-dark {
  color: #fffaf2;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .72);
}
.ma-page .topbar.topbar-transparent .hamburger .hamburger-lines span {
  background: #fffaf2;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .52);
}

@media (max-width: 640px) {
  .ma-film-content {
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: max(4.5rem, env(safe-area-inset-bottom));
  }

  .ma-film-hero h1 {
    max-width: 8.5em;
    color: #fffaf2;
    font-size: clamp(2.15rem, 10vw, 2.65rem);
    line-height: 1.45;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .36);
  }

  .ma-film-content .c9-kicker { color: #e2c77f; }
  .ma-film-content .ma-slide-sub {
    max-width: 24em;
    color: #f1e6d0;
    font-size: .92rem;
    line-height: 1.85;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
  }
  .ma-film-content .ma-hero-actions { gap: 18px; }
  .ma-film-content .c9-btn {
    border-color: #fbf8f1;
    background: #fbf8f1;
    color: #211e1a;
  }
  .ma-film-content .ma-hero-secondary {
    color: #f3e6cb;
    border-color: rgba(243, 230, 203, .62);
  }
}
