/* HumanOS featured-film hero enhancement */
#hiosFloatingExplainer { display: none !important; }

#hero > div:has(#hios-feature-film) {
  max-width: 1240px !important;
  gap: clamp(1.5rem, 3vw, 3rem) !important;
  padding-top: 1.35rem !important;
  padding-bottom: 1.35rem !important;
  align-items: center !important;
}

#hios-feature-film {
  position: relative;
  width: min(100%, 710px);
  margin-inline: auto;
  animation-delay: .08s;
}

.hios-feature-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 231, 255, .43);
  border-radius: 24px;
  background: #020812;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(168, 117, 255, .10),
    0 0 42px rgba(22, 231, 255, .13);
  isolation: isolate;
}

.hios-feature-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 126, .08);
}

.hios-feature-topbar {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 17px;
  border-bottom: 1px solid rgba(22, 231, 255, .15);
  background: linear-gradient(90deg, rgba(22, 231, 255, .075), rgba(255, 190, 66, .035));
  color: rgba(232, 244, 241, .72);
  font: 700 10px/1 "Space Grotesk", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hios-feature-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hios-feature-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16e7c5;
  box-shadow: 0 0 13px rgba(22, 231, 197, .9);
  animation: hios-film-pulse 2s ease-in-out infinite;
}

.hios-feature-duration { color: #ffd264; }

.hios-feature-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #01040a;
}

.hios-feature-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #01040a;
}

.hios-feature-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(to top, rgba(1, 4, 10, .23), transparent 44%);
  cursor: pointer;
  transition: background .22s ease, opacity .22s ease;
}

.hios-feature-play::before {
  content: "▶";
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding-left: 5px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  color: #05111d;
  background: linear-gradient(135deg, #15e9c5, #ffd55d);
  box-shadow: 0 0 0 9px rgba(2, 8, 18, .43), 0 14px 40px rgba(0, 0, 0, .48), 0 0 34px rgba(22, 231, 197, .35);
  font: 800 26px/1 sans-serif;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hios-feature-play:hover::before,
.hios-feature-play:focus-visible::before {
  transform: translateY(-3px) scale(1.055);
  box-shadow: 0 0 0 9px rgba(2, 8, 18, .46), 0 18px 46px rgba(0, 0, 0, .52), 0 0 46px rgba(22, 231, 197, .55);
}

.hios-feature-play:focus-visible { outline: 3px solid #ffd55d; outline-offset: -4px; }
.hios-feature-frame.is-playing .hios-feature-play { opacity: 0; pointer-events: none; }

.hios-feature-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 9px 17px;
  border-top: 1px solid rgba(22, 231, 255, .14);
  background: rgba(3, 13, 25, .96);
}

.hios-feature-caption strong {
  color: #e8f4f1;
  font: 700 12px/1.1 "Space Grotesk", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hios-feature-caption span {
  color: rgba(166, 199, 193, .74);
  font: 600 10px/1.1 "DM Sans", sans-serif;
  letter-spacing: .04em;
}

.hios-feature-caption-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 210, 100, .42);
  border-radius: 999px;
  color: #ffd264 !important;
  background: rgba(255, 210, 100, .055);
  text-transform: uppercase;
}

@keyframes hios-film-pulse {
  0%, 100% { opacity: .58; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (min-width: 1024px) {
  #hero > div:has(#hios-feature-film) {
    grid-template-columns: minmax(420px, .88fr) minmax(560px, 1.25fr) !important;
  }
  #hero > div:has(#hios-feature-film) > div:first-child h1 {
    font-size: clamp(3.15rem, 4.45vw, 4.55rem) !important;
    line-height: .98 !important;
  }
}

@media (max-width: 1023px) {
  #hero > div:has(#hios-feature-film) {
    max-width: 820px !important;
    padding-top: 1.15rem !important;
    padding-bottom: 1.4rem !important;
  }
  #hios-feature-film { margin-top: .4rem; }
}

@media (max-width: 640px) {
  #hero > div:has(#hios-feature-film) {
    gap: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1.1rem !important;
  }
  #hios-feature-film { width: 100%; }
  .hios-feature-frame { border-radius: 16px; }
  .hios-feature-topbar { min-height: 38px; padding-inline: 12px; font-size: 8px; }
  .hios-feature-caption { min-height: 46px; padding: 8px 12px; }
  .hios-feature-caption strong { font-size: 10px; }
  .hios-feature-caption span:not(.hios-feature-caption-badge) { display: none; }
  .hios-feature-caption-badge { font-size: 8px !important; padding: 6px 8px; }
  .hios-feature-play::before { width: 58px; height: 58px; font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .hios-feature-status::before { animation: none; }
  .hios-feature-play::before { transition: none; }
}
