/* Native dialog keeps keyboard focus in the share sheet and supports Escape. */
.movie-share-sheet {
    box-sizing: border-box;
    position: fixed;
    inset: auto 0 0;
    width: min(100%, 440px);
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    margin: 0 auto;
    padding: 11px 16px max(20px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid #282c31;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: #17191c;
    color: #f0f1f3;
    font-family: inherit;
}
.movie-share-sheet::backdrop { background: rgb(0 0 0 / 78%); }
.movie-share-handle { width: 40px; height: 4px; margin: 0 auto 20px; background: #474b53; border-radius: 4px; }
.movie-share-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding: 0; border: 0; }
.movie-share-header h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.movie-share-close { display: grid; place-items: center; width: 40px; height: 36px; margin-right: -9px; padding: 0; border: 0; background: transparent; color: #a8adb5; font-size: 27px; line-height: 1; cursor: pointer; }
.movie-share-preview { display: flex; align-items: center; gap: 12px; min-height: 110px; padding: 12px; border: 1px solid #282c31; border-radius: 13px; background: #0d0f10; }
.movie-share-poster { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 84px; overflow: hidden; border-radius: 6px; background: #292c32; color: #a0a5ad; font-size: 9px; }
.movie-share-poster img { width: 100%; height: 100%; object-fit: cover; }
.movie-share-preview-copy { min-width: 0; }
.movie-share-preview h3 { margin: 0 0 4px; font-size: 14px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.movie-share-preview p { margin: 0; color: #a8adb5; font-size: 12px; line-height: 1.6; }
.movie-share-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.movie-share-options a, .movie-share-options button { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 8px; border: 1px solid #343941; border-radius: 10px; background: transparent; color: #f0f1f3; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.movie-share-options a:hover, .movie-share-options button:hover { border-color: #c7fa32; background: #202426; color: #f0f1f3; text-decoration: none; }
.movie-share-sheet :focus-visible { outline: 2px solid #c7fa32; outline-offset: 3px; }
.movie-share-options button:disabled { opacity: .55; cursor: wait; }
.movie-share-note { margin: 16px 4px 6px; color: #a8adb5; font-size: 12px; line-height: 1.8; }
.movie-share-feedback { margin: 8px 4px 0; color: #c7fa32; font-size: 12px; line-height: 1.6; }
.movie-share-feedback:empty { display: none; }
.movie-share-url { box-sizing: border-box; width: 100%; margin-top: 10px; padding: 10px; border: 1px solid #474b53; border-radius: 6px; background: #0d0f10; color: #f0f1f3; font-size: 13px; }

/* The application header styles must not apply to the modal heading. */
body.movie-page #movieShareSheet .movie-share-header { position: static; top: auto; z-index: auto; height: auto; margin: 0 0 22px; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
body.movie-page #movieShareSheet .movie-share-close { border: 0; background: transparent; box-shadow: none; color: #a8adb5; }
