/* =============================================================
   PropertyManage.Pro — chaptered video player for lean pages

   Copied from the home page's inline "HOME FINAL 5 — VIDEO PLAYER"
   styles (index.html) so lean pages can use the same player. The
   home page keeps its own inline copy; if the player changes there,
   mirror it here. Pair with pmp-video-player.js. One player per page.
   ============================================================= */
   ============================================================= */
.f5-player { overflow: hidden; outline: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.f5-player:focus-visible { outline: 3px solid rgba(47,176,166,.55); outline-offset: 3px; }
.f5-player-media { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #07141A; }
.f5-player.is-fullscreen .f5-player-media { object-fit: contain; }
.f5-player svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.f5-player .f5-player-ico-play svg, .f5-player .f5-player-ico-pause svg { fill: currentColor; stroke: none; }

/* Cover: poster + big play + duration badge (idle only) */
.f5-player-cover { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: linear-gradient(180deg, rgba(7,20,26,.08) 0%, rgba(7,20,26,.06) 55%, rgba(7,20,26,.55) 100%); cursor: pointer; opacity: 1; transition: opacity .38s ease, visibility .38s ease; }
.f5-player:not(.is-idle) .f5-player-cover { opacity: 0; visibility: hidden; pointer-events: none; }
.f5-player-bigplay { display: inline-flex; align-items: center; justify-content: center; width: clamp(84px,9vw,124px); height: clamp(84px,9vw,124px); border-radius: 50%; background: rgba(12,27,32,.55); border: 1px solid rgba(247,251,251,.85); box-shadow: 0 12px 40px rgba(4,12,15,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .32s cubic-bezier(.22,1,.36,1), background .25s ease, border-color .25s ease; }
.f5-player-bigplay-tri { display: block; width: 0; height: 0; margin-left: 7px; border-left: clamp(24px,2.6vw,34px) solid #F7FBFB; border-top: clamp(15px,1.7vw,22px) solid transparent; border-bottom: clamp(15px,1.7vw,22px) solid transparent; }
.f5-player-cover:hover .f5-player-bigplay, .f5-player-cover:focus-visible .f5-player-bigplay { transform: scale(1.06); background: rgba(47,176,166,.55); border-color: #F7FBFB; }
.f5-player-cover:focus-visible { outline: none; }
.f5-player-cover:focus-visible .f5-player-bigplay { box-shadow: 0 0 0 4px rgba(47,176,166,.45), 0 12px 40px rgba(4,12,15,.5); }
.f5-player-badge { position: absolute; left: clamp(14px,1.6vw,22px); bottom: clamp(14px,1.6vw,22px); display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; background: rgba(7,20,26,.72); border: 1px solid rgba(210,236,234,.28); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: #F7FBFB; }
.f5-player-badge i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #2FB0A6; animation: pmpPulse 1.8s ease-in-out infinite; }

/* Buffering spinner */
.f5-player-spinner { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .2s ease .25s; }
.f5-player.is-buffering .f5-player-spinner { opacity: 1; }
.f5-player-spinner span { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(247,251,251,.18); border-top-color: #2FB0A6; animation: f5PlayerSpin .9s linear infinite; }
@keyframes f5PlayerSpin { to { transform: rotate(1turn); } }

/* End screen */
.f5-player-end { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: clamp(18px,4vw,40px); text-align: center; color: #11242A;
  background:
    radial-gradient(110% 80% at 6% 0%, rgba(255,255,255,.62) 0%, rgba(255,255,255,0) 58%),
    radial-gradient(85% 75% at 100% 100%, rgba(31,163,155,.92) 0%, rgba(31,163,155,0) 62%),
    linear-gradient(135deg, #D2ECEA 0%, #C3E6E3 42%, #8ED0CA 78%, #1FA39B 100%);
  animation: f5PlayerFade .45s ease both; }
.f5-player-end::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 40%, rgba(17,36,42,.06) 100%); }
.f5-player-end > * { position: relative; }
.f5-player-end[hidden] { display: none; }
@keyframes f5PlayerFade { from { opacity: 0; } to { opacity: 1; } }
.f5-player-end-kicker { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #11242A; }
.f5-player-end-title { margin: 0; max-width: 16ch; font-family: 'Sora', sans-serif; font-size: clamp(22px,3.2vw,38px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; color: #11242A; text-wrap: balance; }
.f5-player-end-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: clamp(8px,1.6vw,18px); }
.f5-player-replay { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(17,36,42,.32); border-radius: 7px; background: rgba(255,255,255,.42); color: #11242A; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; transition: background .22s ease, border-color .22s ease; }
.f5-player-replay:hover, .f5-player-replay:focus-visible { background: rgba(255,255,255,.72); border-color: #11242A; outline: none; }
.f5-player-replay svg { width: 17px; height: 17px; }
@media (max-width: 560px) {
  .f5-player-end { gap: 6px; padding: 14px; }
  .f5-player-end-kicker { font-size: 9px; letter-spacing: .16em; }
  .f5-player-end-title { font-size: clamp(18px, 5.4vw, 24px); }
  .f5-player-end-actions { gap: 8px; margin-top: 6px; }
  .f5-player-end .pmp-cta-system { min-height: 44px !important; padding-inline: 16px !important; }
  .f5-player-replay { min-height: 44px; padding: 0 14px; font-size: 13px; }
}

/* Controls */
.f5-player-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 34px clamp(10px,1.4vw,16px) clamp(8px,1vw,12px); background: linear-gradient(180deg, rgba(7,20,26,0) 0%, rgba(7,20,26,.62) 42%, rgba(7,20,26,.9) 100%); color: #F7FBFB; opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease; }
.f5-player.is-idle .f5-player-controls { display: none; }
.f5-player.is-active .f5-player-controls, .f5-player.is-paused .f5-player-controls, .f5-player.is-scrubbing .f5-player-controls, .f5-player:has(:focus-visible) .f5-player-controls { opacity: 1; transform: none; }
/* The end screen owns the frame: controls step aside until Watch again or a chapter restarts playback. */
.f5-player.is-ended .f5-player-controls { opacity: 0 !important; transform: translateY(6px) !important; pointer-events: none; }
.f5-player.is-playing.is-hidecursor { cursor: none; }
.f5-player-bar { display: flex; align-items: center; gap: clamp(2px,.5vw,8px); margin-top: 6px; }
.f5-player-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #F7FBFB; cursor: pointer; transition: background .2s ease, color .2s ease; }
.f5-player-btn:hover { background: rgba(247,251,251,.1); }
.f5-player-btn:focus-visible { outline: 2px solid #2FB0A6; outline-offset: -2px; }
.f5-player-ico-pause, .f5-player-ico-mute, .f5-player-ico-min { display: none; }
.f5-player.is-playing .f5-player-ico-play { display: none; }
.f5-player.is-playing .f5-player-ico-pause { display: block; }
.f5-player.is-muted .f5-player-ico-vol { display: none; }
.f5-player.is-muted .f5-player-ico-mute { display: block; }
.f5-player.is-fullscreen .f5-player-ico-max { display: none; }
.f5-player.is-fullscreen .f5-player-ico-min { display: block; }
.f5-player-speed { width: auto; min-width: 40px; padding: 0 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.f5-player-time { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: #F7FBFB; }
.f5-player-time-sep { color: rgba(247,251,251,.45); }
.f5-player-now { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 10px; font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: rgba(247,251,251,.82); text-align: right; }
.f5-player-now::before { content: "Now: "; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #2FB0A6; }

/* Volume */
.f5-player-volume { display: inline-flex; align-items: center; flex: none; }
.f5-player-vol { -webkit-appearance: none; appearance: none; width: 0; height: 24px; margin: 0; padding: 0; opacity: 0; background: transparent; cursor: pointer; transition: width .25s ease, opacity .25s ease, margin .25s ease; }
.f5-player-volume:hover .f5-player-vol, .f5-player-volume:focus-within .f5-player-vol { width: 78px; opacity: 1; margin-right: 6px; }
.f5-player-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #2FB0A6 var(--f5-vol, 100%), rgba(247,251,251,.28) var(--f5-vol, 100%)); }
.f5-player-vol::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(247,251,251,.28); }
.f5-player-vol::-moz-range-progress { height: 4px; border-radius: 2px; background: #2FB0A6; }
.f5-player-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; border: 0; background: #F7FBFB; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.f5-player-vol::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #F7FBFB; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.f5-player-vol:focus-visible { outline: 2px solid #2FB0A6; outline-offset: 2px; }
@media (hover: none) { .f5-player-vol { display: none; } }

/* Seek bar */
.f5-player-seek { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.f5-player-seek:focus-visible { outline: none; }
.f5-player-seek:focus-visible .f5-player-seek-track { box-shadow: 0 0 0 2px #0C1B20, 0 0 0 4px #2FB0A6; }
.f5-player-seek-track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(247,251,251,.22); transition: height .16s ease; }
.f5-player-seek:hover .f5-player-seek-track, .f5-player.is-scrubbing .f5-player-seek-track { height: 6px; }
.f5-player-seek-buffer, .f5-player-seek-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; }
.f5-player-seek-buffer { background: rgba(247,251,251,.28); }
.f5-player-seek-played { background: #2FB0A6; }
.f5-player-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(12,27,32,.9); z-index: 1; }
.f5-player-seek-thumb { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #F7FBFB; box-shadow: 0 0 0 3px rgba(47,176,166,.35), 0 2px 6px rgba(0,0,0,.45); transform: scale(0); transition: transform .16s ease; z-index: 2; }
.f5-player-seek:hover .f5-player-seek-thumb, .f5-player-seek:focus-visible .f5-player-seek-thumb, .f5-player.is-scrubbing .f5-player-seek-thumb { transform: scale(1); }
.f5-player-seek-tip { position: absolute; bottom: 100%; left: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 6px; padding: 6px 9px; border-radius: 4px; background: rgba(7,20,26,.92); border: 1px solid rgba(210,236,234,.22); transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .15s ease; white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em; color: #F7FBFB; }
.f5-player-seek-tip [data-f5-tip-chapter] { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: -.01em; color: #2FB0A6; }
.f5-player-seek-tip [data-f5-tip-chapter]:empty { display: none; }
.f5-player-seek:hover .f5-player-seek-tip, .f5-player.is-scrubbing .f5-player-seek-tip { opacity: 1; }
@media (hover: none) { .f5-player-seek-tip { display: none; } .f5-player-seek-thumb { transform: scale(1); } }

/* Fullscreen */
.f5-player:fullscreen, .f5-player:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto !important; border: 0 !important; box-shadow: none !important; background: #000; }
.f5-player:fullscreen .f5-player-controls { padding-inline: clamp(16px,3vw,40px); padding-bottom: clamp(12px,2vw,24px); }

/* Chapters: always one row on desktop */
.f5-chapter { position: relative; }
.f5-chapter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #2FB0A6; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.f5-chapter.is-active { background: #11242A !important; }
.f5-chapter.is-active::after { transform: scaleX(1); }
.f5-chapter.is-active .f5-chapter-at { color: #7FE0D6 !important; }

@media (max-width: 560px) {
  .f5-player-now { display: none; }
  .f5-player-controls { padding-top: 26px; }
  .f5-player-bar { gap: 0; }
  .f5-player-btn { width: 38px; height: 38px; }
  .f5-player-time { font-size: 11px; padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .f5-player-cover, .f5-player-controls, .f5-player-bigplay, .f5-player-end { transition: none; animation: none; }
}
