@font-face {
  font-family: "Host Grotesk"; src: url("/assets/host-grotesk.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}
.mahara-film {
  width: min(calc(100% - 40px), 1180px);
  margin: clamp(28px, 4.4vh, 46px) auto 0;
}
.mahara-film__canvas {
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
  width: 100%; height: min(calc((100vw - 24px) * 16 / 9), 684px);
  container-type: size; border-radius: 16px; background: #a4b8af;
}
.mahara-film__painting {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%; filter: saturate(.85) contrast(.92);
}
.mahara-device {
  position: relative; height: calc(100% - 65px); aspect-ratio: 389 / 800;
  max-width: calc(100% - 32px);
  filter: drop-shadow(0 13px 16px rgba(21,26,31,.19)) drop-shadow(0 2px 3px rgba(21,26,31,.22));
}
.mahara-device::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/media/iphone18pro.png") center / 100% 100% no-repeat;
}
.mahara-window__bar { display: none; }
.mahara-device__screen {
  position: absolute; left: 4.03%; top: 1.45%; width: 91.94%; height: 97.10%;
  overflow: hidden; border-radius: 16.2% / 7.5%; background: white;
}
.mahara-film__poster, .mahara-film__poster img, .mahara-device video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain;
}
.mahara-device video { background: transparent; }
@media (max-width: 720px) {
  .mahara-film { width: calc(100% - 24px); margin-top: 28px; }
  .mahara-film__canvas { border-radius: 12px; }
}
@media (min-width: 840px) {
  .mahara-film__canvas { height: auto; aspect-ratio: 1.86; }
  .mahara-device {
    --window-bar: clamp(24px, 2.1vw, 30px);
    width: 86%; width: min(91cqw, calc((100cqh - var(--window-bar) - 44px) * 16 / 9));
    height: auto; max-width: none; aspect-ratio: auto; overflow: hidden;
    background: white; border: 1px solid rgba(32,36,45,.22); border-radius: 10px;
    filter: none; box-shadow: 0 18px 45px rgba(28,35,38,.2), 0 3px 9px rgba(28,35,38,.14);
  }
  .mahara-device::after { content: none; }
  .mahara-window__bar {
    position: relative; display: flex; align-items: center; justify-content: center; height: var(--window-bar);
    background: linear-gradient(#f9f9fa, #ebebed); border-bottom: 1px solid #d9d9dd;
  }
  .mahara-window__dots { position: absolute; left: 12px; display: flex; gap: 5px; }
  .mahara-window__dots i { width: 8px; height: 8px; border-radius: 50%; background: #e68176; }
  .mahara-window__dots i:nth-child(2) { background: #e9b85a; }
  .mahara-window__dots i:nth-child(3) { background: #72b889; }
  .mahara-window__address {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    width: 31%; height: 68%; background: rgba(255,255,255,.86);
    border-radius: 5px; color: #5b5b64; font-size: 10px; line-height: 1;
  }
  .mahara-window__address svg { width: 11px; height: 11px; }
  .mahara-device__screen {
    position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0;
  }
}
.mahara-film__tools {
  display: flex; align-items: center; gap: 4px; width: 100%; padding: 8px 1px 0; color: var(--texto);
}
.mahara-film__tools[hidden] { display: none; }
.mahara-film__tools button {
  flex: none; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0;
  border: 0; border-radius: 50%; color: inherit; background: transparent; cursor: pointer;
}
.mahara-film__tools button:hover { background: rgba(30,30,36,.07); }
.mahara-film__tools [data-toggle] { background: var(--texto); color: white; }
.mahara-film__tools [data-toggle]:hover { background: #393940; }
.mahara-film__tools button:focus-visible, .mahara-film__tools input:focus-visible {
  outline: 2px solid var(--principal); outline-offset: 1px;
}
.mahara-film__tools svg { width: 18px; height: 18px; }
.mahara-film__tools [data-icon] { display: none; }
.mahara-film[data-playing="true"] [data-icon="pause"],
.mahara-film:not([data-playing="true"]) [data-icon="play"],
.mahara-film:not([data-expanded]) [data-icon="expand"],
.mahara-film[data-expanded] [data-icon="shrink"] { display: block; }
.mahara-film__timeline { min-width: 0; flex: 1; margin: 0 9px; position: relative; height: 48px; }
.mahara-film__status {
  display: flex; justify-content: space-between; align-items: center; gap: 5px;
  padding: 2px 1px 0; font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap;
}
.mahara-film__clock { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 400; color: #66666f; }
.mahara-film__timeline input {
  --progress: 0%; position: absolute; left: 0; bottom: 0; width: 100%; height: 44px;
  margin: 0; padding: 16px 0 0; border: none; border-radius: 5px; cursor: pointer;
  background: transparent; appearance: none; -webkit-appearance: none; accent-color: var(--principal);
}
.mahara-film__timeline input::-webkit-slider-runnable-track {
  height: 5px; border-radius: 9px;
  background: linear-gradient(to right, var(--principal) 0 var(--progress), #d8d9df var(--progress) 100%);
}
.mahara-film__timeline input::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4px;
  background: var(--principal); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px rgba(40,40,48,.18);
}
.mahara-film__timeline input::-moz-range-track { height: 5px; background: #d8d9df; border-radius: 9px; }
.mahara-film__timeline input::-moz-range-progress { height: 5px; background: var(--principal); border-radius: 9px; }
.mahara-film__timeline input::-moz-range-thumb {
  width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: var(--principal);
}
@media (max-width: 480px) {
  .mahara-film__tools { gap: 0; }
  .mahara-film__timeline { margin: 0 4px; }
  .mahara-film__status { font-size: 12px; }
}
.mahara-film:fullscreen, .mahara-film[data-expanded] {
  position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column;
  width: 100%; height: 100vh; height: 100dvh; max-width: none; margin: 0; background: white;
}
.mahara-film[data-expanded] .mahara-film__canvas, .mahara-film:fullscreen .mahara-film__canvas {
  flex: 1; min-height: 0; height: auto; aspect-ratio: auto; border-radius: 0;
}
.mahara-film[data-expanded] .mahara-film__tools { width: min(100% - 16px,1180px); margin: 0 auto; padding-bottom: max(5px, env(safe-area-inset-bottom)); }
@media (max-width: 839px) {
  .mahara-film[data-expanded] .mahara-device { height: min(calc(100cqh - 24px), calc((100cqw - 24px) * 800 / 389)); }
}
html.film-expanded, html.film-expanded body { overflow: hidden; }
.mahara-theater { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: white; }
.mahara-theater::backdrop { background: white; }
@media(forced-colors: active) {
  .mahara-film__timeline input { appearance: auto; }
}
