/* 原站 master.css 的 inline <style>，原樣搬移，勿改（佔位符法：版面照原站） */
:root{
            --silk-gold:#F2D8A0;
            --silk-ink:#0B0B0C;
            --card-bg: radial-gradient(120% 120% at 0% 0%, #1a1a1c 0%, #101012 60%, #0b0b0c 100%);
        }
        .line-clamp-3{
            display:-webkit-box;
            -webkit-line-clamp:3;
            -webkit-box-orient:vertical;
            overflow:hidden;
        }

        dialog::backdrop{ background:rgba(0,0,0,.65); }

        dialog.fullscreen:not([open]){ display:none; }
        dialog.fullscreen{
            position: fixed; inset: 0;
            width:100vw; height:100svh; height:100dvh;
            margin:0; padding:0; border:0; background:transparent; outline:none;
        }
        dialog.fullscreen[open]{ display:block; }

        .modal-overlay{
            position:fixed; inset:0;
            width:100vw; height:100svh; height:100dvh;
            display:grid; place-items:center;
            background:rgba(0,0,0,.65);
        }

        .modal-panel{
            width:min(94vw,1080px);
            max-height:calc(100svh - 32px);
            max-height:calc(100dvh - 32px);
            overflow:auto;
            -webkit-overflow-scrolling:touch;
            box-sizing:border-box;
        }

        .profile-detail-grid{
            display:grid;
            grid-template-columns:minmax(0,1fr) minmax(220px,300px);
            gap:1.75rem;
            align-items:start;
        }

        .profile-message-video{
            width:100%;
            max-height:min(58svh,520px);
            aspect-ratio:9 / 16;
            object-fit:contain;
        }

        .profile-detail-copy{
            min-height:min(66svh,620px);
        }

        @media (max-width:768px){
            .modal-panel{
                width:min(94vw,820px);
            }

            .profile-detail-grid{
                grid-template-columns:1fr;
                gap:1.25rem;
            }

            .profile-message-video{
                width:min(100%,220px);
                max-height:min(46svh,360px);
                margin-inline:auto;
            }

            .profile-detail-copy{
                min-height:0;
            }
        }

        @media (prefers-reduced-motion: reduce){
            *{ transition:none !important; animation:none !important; }
        }
