/* P7 — the film player (→ assets/css/film.css). Site tokens only (page.css). */
.fp-ic { width: 20px; height: 20px; flex: none; }
/* ================= THE FILM PLAYER (→ assets/css/film.css) ================= */
.fp { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--gold-line-strong), 0 30px 60px -30px #000; }
.fp-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.fp-video, .fp-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.fp-frame { z-index: 1; }
.fp-poster { position: absolute; inset: 0; z-index: 2; display: grid; cursor: pointer; }
.fp-poster__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.fp-poster__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 9, 20, .92) 0%, rgba(2, 9, 20, .35) 55%, rgba(2, 9, 20, .15) 100%); }
.fp-poster__words { position: absolute; inset-inline: 22px; bottom: 20px; display: grid; gap: 4px; max-width: 62%; }
.fp-poster__k { color: var(--gold-hi); font-weight: 800; font-size: .82rem; }
.fp-poster__t { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.15; color: #fff3d6; }
.fp-poster__s { color: var(--text-2); font-size: .92rem; line-height: 1.7; }
.fp-big { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; border: 0; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--gold-ink); cursor: pointer; box-shadow: 0 14px 34px -12px #000; transition: scale .2s; }
.fp-big:hover { scale: 1.06; }
.fp-big .fp-ic { width: 36px; height: 36px; translate: 2px 0; }
.fp-resume { position: absolute; top: 16px; inset-inline-start: 16px; display: flex; gap: 8px; }
.fp-resume button { height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
.fp-resume__go { border: 0; background: rgba(2, 9, 20, .82); color: #ffe9b8; box-shadow: 0 0 0 1px var(--gold-line-strong); }
.fp-resume__go .fp-ic { width: 16px; height: 16px; color: var(--gold-hi); }
.fp-resume__no { border: 1px solid rgba(255, 255, 255, .25); background: rgba(2, 9, 20, .55); color: var(--text-2); }
.fp-toast { position: absolute; z-index: 4; top: 14px; left: 50%; translate: -50% 0; max-width: calc(100% - 28px); padding: 8px 14px; border-radius: 12px; background: rgba(2, 9, 20, .9); color: var(--text); font-size: .84rem; font-weight: 700; box-shadow: 0 0 0 1px var(--gold-line-strong); }

.fp-bar { position: relative; padding: 10px 14px 10px; background: linear-gradient(180deg, #08111f, #050c17); border-top: 1px solid var(--gold-line); }
.fp-track { position: relative; height: 22px; cursor: pointer; direction: rtl; outline: none; }
.fp-track::before { content: ''; position: absolute; inset-inline: 0; top: 9px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.fp-track__buf, .fp-track__fill { position: absolute; inset-inline-start: 0; top: 9px; height: 4px; border-radius: 4px; }
.fp-track__buf { background: rgba(255, 255, 255, .22); }
.fp-track__fill { background: linear-gradient(270deg, var(--gold), var(--gold-hi)); }
.fp-track__tick { position: absolute; top: 7px; inset-inline-start: var(--x); width: 2px; height: 8px; background: rgba(2, 9, 20, .9); }
.fp-track__tick.is-ours { width: 4px; height: 12px; top: 5px; border-radius: 2px; background: #e25a4f; }
.fp-track__knob { position: absolute; top: 4px; inset-inline-start: var(--x, 0%); width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 0 3px rgba(var(--gold-hi-rgb), .35); }
.fp-track__tip { position: absolute; bottom: 26px; inset-inline-start: var(--x); translate: 50% 0; display: grid; gap: 2px; padding: 6px 10px; border-radius: 10px; background: rgba(2, 9, 20, .95); box-shadow: 0 0 0 1px var(--gold-line-strong); color: var(--text-2); font-size: .76rem; white-space: nowrap; }
.fp-track__tip b { color: var(--gold-hi); }
.fp-row { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.fp-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; display: inline-grid; place-items: center; background: none; color: var(--text); cursor: pointer; position: relative; }
.fp-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .07); }
.fp-btn:disabled { opacity: .35; cursor: default; }
.fp-btn .fp-ic { width: 24px; height: 24px; }
.fp-btn--main .fp-ic { width: 26px; height: 26px; }
.fp-btn--txt { width: auto; padding: 0 10px; font: inherit; font-weight: 800; }
.fp-btn--txt b { white-space: nowrap; }
.fp-hd { position: absolute; top: 4px; inset-inline-end: 1px; padding: 0 4px; border-radius: 5px; background: var(--gold); color: var(--gold-ink); font-size: .56rem; font-weight: 900; line-height: 1.5; }
.fp-time { margin-inline: 8px; color: var(--text-2); font-size: .88rem; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.fp-time b { color: var(--text); }
.fp-now { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gold-hi); font-weight: 700; font-size: .86rem; }
.fp-gap { flex: 1; }
.fp-menu { position: absolute; z-index: 6; bottom: calc(100% - 6px); inset-inline-end: 12px; min-width: 230px; padding: 8px; border-radius: 16px; background: rgba(5, 12, 23, .98); box-shadow: 0 0 0 1px var(--gold-line-strong), 0 20px 50px -20px #000; display: grid; gap: 2px; }
.fp-menu__h { padding: 6px 10px 8px; color: var(--text-3); font-size: .78rem; font-weight: 800; }
.fp-menu__head { display: flex; align-items: center; justify-content: space-between; }
.fp-menu__head .fp-menu__h { margin: 0; }
.fp-menu .fp-menu__close { width: auto; height: 32px; padding-inline: 10px; color: var(--gold-hi); font-size: .75rem; }
.fp-menu button { height: 42px; padding: 0 10px; border: 0; border-radius: 10px; display: flex; align-items: center; gap: 8px; background: none; color: var(--text); font: inherit; font-weight: 700; font-size: .92rem; text-align: start; cursor: pointer; }
.fp-menu button i { width: 18px; }
.fp-menu button .fp-ic { width: 18px; height: 18px; color: var(--gold-hi); }
.fp-menu button[aria-checked="true"] { background: rgba(var(--gold-hi-rgb), .1); color: #ffe9b8; }
.fp-menu button:hover { background: rgba(255, 255, 255, .06); }
.fp-menu small { color: var(--text-3); font-weight: 600; font-size: .76rem; margin-inline-start: auto; }
.fp-menu__note { padding: 6px 10px; color: var(--text-3); font-size: .74rem; }

/* the full-screen look (the real one is the browser's; the shots draw it) */
.fp.is-full { position: fixed; inset: 0; z-index: 50; border-radius: 0; display: grid; grid-template-rows: 1fr auto; box-shadow: none; }
.fp.is-full .fp-stage { aspect-ratio: auto; }
.fp.is-full .fp-bar { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(0deg, rgba(2, 9, 20, .95), rgba(2, 9, 20, 0)); border: 0; padding-top: 40px; }


/* ---------- phones ---------- */
@media (max-width: 640px) {
  .fp { border-radius: 0; box-shadow: none; border-block: 1px solid var(--gold-line); }
  .fp-poster__words { inset-inline: 14px; bottom: 12px; max-width: 70%; }
  .fp-poster__s { display: none; }
  .fp-big { width: 64px; height: 64px; }
  .fp-big .fp-ic { width: 28px; height: 28px; }
  .fp-resume { top: 10px; inset-inline-start: 10px; }
  .fp-resume button { height: 36px; padding: 0 12px; font-size: .8rem; }
  .fp-bar { padding: 6px 8px 8px; }
  .fp-row { flex-wrap: wrap; }
  .fp-btn { width: 42px; height: 42px; }
  .fp-btn--wide { display: none; }
  .fp-now { order: 9; flex-basis: 100%; padding-inline: 8px; font-size: .8rem; }
  .fp-time { margin-inline: 4px; font-size: .82rem; }
  .fp-menu { inset-inline: 8px; min-width: 0; }
}

/* «حول كنيستنا» has no «خدمات تانية» (the build: the page option more: false) */

/* the player hides its parts with [hidden] (their own display would win) */
.fp [hidden] { display: none !important; }

/* six sections: on phones the bar scrolls sideways inside itself (the page never does) */

/* full screen (drawn for the shots; the real one is the browser's own) */
.fp.is-full { display: block; z-index: 1000; }
.fp.is-full .fp-stage { position: absolute; inset: 0; aspect-ratio: auto; }
@media (max-width: 640px) {
  .fp-btn { width: 38px; }
  .fp-btn:disabled { display: none; }
}
.fp.is-full .fp-bar { z-index: 3; }

/* Fullscreen viewing: the picture settles in, then the controls fade away when idle. */
.fp.is-full .fp-stage { animation: fp-enter .28s cubic-bezier(.16, 1, .3, 1) both; }
.fp.is-full-exiting .fp-stage { animation: fp-exit .18s ease-in both; }
@keyframes fp-enter { from { opacity: .86; scale: .985; } to { opacity: 1; scale: 1; } }
@keyframes fp-exit { from { opacity: 1; scale: 1; } to { opacity: .86; scale: .985; } }
.fp.is-full .fp-bar { opacity: 1; transform: translateY(0); transition: opacity .42s ease, transform .42s cubic-bezier(.16, 1, .3, 1); }
.fp.is-full.is-controls-hidden .fp-bar { opacity: 0; transform: translateY(16px); pointer-events: none; }
.fp.is-full.is-controls-hidden { cursor: none; }
.fp-stage { touch-action: manipulation; cursor: pointer; user-select: none; }
html.fp-has-full { overflow: hidden; }
.fp-seek-flash { position: absolute; z-index: 5; top: 50%; left: 50%; translate: -50% -50%; padding: 10px 16px; border-radius: 999px; background: rgba(2, 9, 20, .76); color: #fff3d6; font-weight: 800; pointer-events: none; }
.fp-seek-flash[data-side="left"] { left: 23%; }
.fp-seek-flash[data-side="right"] { left: 77%; }
@media (max-width: 760px) and (orientation: portrait) {
  .fp.is-full.is-rotated { inset: auto; top: 0; left: 100dvw; width: 100dvh; height: 100dvw; transform-origin: top left; transform: rotate(90deg); }
  .fp.is-full.is-rotated .fp-mark { top: 3.2%; inset-inline-start: 2.4%; width: clamp(38px, 7%, 76px); }
  .fp.is-full.is-rotated .fp-row { flex-wrap: nowrap; }
  .fp.is-full.is-rotated .fp-now { order: initial; flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .fp.is-full .fp-stage, .fp.is-full-exiting .fp-stage { animation: none; }
  .fp.is-full .fp-bar { transition: opacity .18s ease; }
}

/* The time display gets its own flexible column; the actions keep full touch targets. */
@media (max-width: 640px) and (orientation: portrait) {
  .fp:not(.is-full) .fp-row { display: grid; grid-template-columns: repeat(3, 40px) minmax(74px, 1fr) 40px; gap: 3px; align-items: center; }
  .fp:not(.is-full) .fp-btn { width: 40px; height: 44px; }
  .fp:not(.is-full) [data-play].fp-btn { grid-column: 1; grid-row: 1; }
  .fp:not(.is-full) [data-skip="10"] { grid-column: 2; grid-row: 1; }
  .fp:not(.is-full) [data-skip="-10"] { grid-column: 3; grid-row: 1; }
  .fp:not(.is-full) .fp-time { grid-column: 4; grid-row: 1; margin: 0; font-size: .76rem; text-align: center; }
  .fp:not(.is-full) [data-full] { grid-column: 5; grid-row: 1; }
  .fp:not(.is-full) .fp-now { grid-column: 1 / 4; grid-row: 2; order: initial; flex-basis: auto; padding-inline: 4px; }
  .fp:not(.is-full) .fp-gap { display: none; }
  .fp:not(.is-full) [data-menu="s"] { grid-column: 4; grid-row: 2; justify-self: center; width: auto; min-width: 44px; max-width: 100%; padding: 0 3px; }
  .fp:not(.is-full) [data-menu="q"] { grid-column: 5; grid-row: 2; }
  .fp-menu { inset-inline: 8px; bottom: 4px; max-height: min(272px, calc(100svh - 24px)); overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 320px) and (max-width: 640px) and (orientation: portrait) {
  .fp:not(.is-full) .fp-row { grid-template-columns: repeat(3, 44px) minmax(74px, 1fr) 44px; }
  .fp:not(.is-full) .fp-btn { width: 44px; }
}
@media (max-width: 760px) and (orientation: landscape) {
  .fp.is-full .fp-row { display: flex; flex-wrap: nowrap; }
  .fp.is-full .fp-now { order: initial; flex-basis: auto; }
  .fp.is-full .fp-btn:disabled, .fp.is-full .fp-btn--wide { display: none; }
}

/* Each control confirms its own action without delaying the click handler. */
.fp-btn--main.is-tapped { animation: fp-play-tap .26s cubic-bezier(.16, 1, .3, 1); }
.fp-btn[data-skip="10"].is-tapped .fp-ic { animation: fp-forward-tap .25s ease-out; }
.fp-btn[data-skip="-10"].is-tapped .fp-ic { animation: fp-back-tap .25s ease-out; }
.fp-btn[data-menu="s"].is-tapped b { animation: fp-speed-tap .25s ease-out; }
.fp-btn[data-menu="q"].is-tapped .fp-ic { animation: fp-quality-tap .28s ease-out; }
.fp-btn[data-pip].is-tapped .fp-ic { animation: fp-pip-tap .25s ease-out; }
.fp-btn[data-full].is-tapped { animation: fp-full-tap .28s ease-out; }
.fp-btn[aria-expanded="true"] { background: rgba(var(--gold-hi-rgb), .14); color: var(--gold-hi); }
.fp-menu { animation: fp-menu-in .2s cubic-bezier(.16, 1, .3, 1); }
.fp-menu button:active { background: rgba(var(--gold-hi-rgb), .16); scale: .98; }
.fp-track__knob { transition: scale .18s ease, box-shadow .18s ease; }
.fp.is-scrubbing .fp-track__knob { scale: 1.3; box-shadow: 0 0 0 5px rgba(var(--gold-hi-rgb), .3); }
@keyframes fp-play-tap { 50% { scale: .82; background: rgba(var(--gold-hi-rgb), .2); } }
@keyframes fp-forward-tap { 50% { transform: rotate(28deg); color: var(--gold-hi); } }
@keyframes fp-back-tap { 50% { transform: rotate(-28deg); color: var(--gold-hi); } }
@keyframes fp-speed-tap { 50% { scale: 1.22; color: var(--gold-hi); } }
@keyframes fp-quality-tap { 50% { transform: rotate(45deg); color: var(--gold-hi); } }
@keyframes fp-pip-tap { 50% { transform: translate(3px, -3px); color: var(--gold-hi); } }
@keyframes fp-full-tap { 50% { scale: .86; background: rgba(var(--gold-hi-rgb), .16); } }
@keyframes fp-menu-in { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .fp-btn.is-tapped, .fp-btn.is-tapped .fp-ic, .fp-btn.is-tapped b, .fp-menu { animation: none; }
  .fp-track__knob { transition: none; }
}
