/* Inline players: provider chrome stays inside the player; source links remain outside it. */
.reader-site .video-preview{display:block;clear:both;width:100%;max-width:760px;margin:1.2rem auto;border:1px solid var(--section-line,var(--line));border-radius:12px;background:var(--section-paper,var(--paper));color:var(--ink);font-family:'Qaim UI',Tahoma,sans-serif;font-size:1rem;line-height:1.8;box-shadow:0 5px 15px #17312616;overflow-wrap:anywhere;white-space:normal;text-align:right}
.reader-site .video-frame{position:relative;width:100%;aspect-ratio:16/9;background:#101714;border-radius:11px;overflow:hidden}
.reader-site .video-frame:focus-within{outline:3px solid var(--gold);outline-offset:3px}
.reader-site .video-frame iframe,.reader-site .video-frame video{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:none;margin:0;border:0;border-radius:0;background:#101714;object-fit:contain}
.reader-site .audio-preview{max-width:760px}
.reader-site .audio-frame{padding:1rem;background:linear-gradient(110deg,transparent,#b69a5120);border-radius:11px}
.reader-site .audio-frame audio{display:block;width:100%;min-width:0;max-width:100%;height:54px;margin:0;border:0}
.reader-site .audio-frame:focus-within{outline:3px solid var(--gold);outline-offset:3px}
.reader-site .video-portrait{max-width:380px}
.reader-site .video-portrait .video-frame{aspect-ratio:9/16}
.reader-site .video-preview[data-provider=instagram] .video-frame{min-height:430px;background:#fff}
.reader-site .video-fallback{display:flex;align-items:center;justify-content:space-between;gap:.5rem 1rem;flex-wrap:wrap;padding:.55rem .8rem;font-size:.77rem;line-height:1.8}
.reader-site .video-fallback a,.reader-site .video-link-hint>a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;color:var(--green-dark);font-weight:600;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
.reader-site .video-fallback span{color:var(--muted);font-size:.75rem}
.reader-site .video-link-hint{clear:both;padding:.8rem 1rem;margin:1rem 0;border:1px dashed var(--section-line,var(--line));border-radius:10px;background:var(--section-paper,var(--paper));color:var(--ink);font-family:'Qaim UI',Tahoma,sans-serif;font-size:.8rem;line-height:1.9;white-space:normal;text-align:right;overflow-wrap:anywhere}
.reader-site .video-link-hint p{margin:0}
body.reader-site[data-section=library] .book-row.library-video{grid-template-columns:76px minmax(0,1fr)}
body.reader-site[data-section=library] .book-row.library-video:before{height:68px;border-radius:7px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23edce91' d='M18 12 37 24 18 36Z'/%3E%3C/svg%3E") center/42px no-repeat,linear-gradient(110deg,#75483b,#462e27)}
body.reader-site[data-section=library] .book-row.library-video.library-audio:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='none' stroke='%23edce91' stroke-width='4' stroke-linecap='round' d='M9 20v8m10-15v22m10-28v34m10-21v8'/%3E%3C/svg%3E"),linear-gradient(110deg,#75483b,#462e27)}
body.reader-site[data-section=library] .book-row.library-video>.library-video-info{grid-column:2;min-width:0}
body.reader-site[data-section=library] .book-row.library-video>.video-preview,body.reader-site[data-section=library] .book-row.library-video>.video-link-hint{grid-column:1/-1;grid-row:auto;min-width:0;margin:.25rem auto 0}
body.reader-site[data-section=library] .book-row.library-video>.video-preview:not(.video-portrait){max-width:none}
.reader-site .comment>.video-preview,.reader-site .reply>.video-preview{margin-block:1rem}
.reader-site.dark .video-preview{box-shadow:none}
@media(max-width:700px){
 .reader-site .video-preview{border-radius:9px;margin-block:1rem}
 .reader-site .video-frame{border-radius:8px}
 .reader-site .audio-frame{padding:.75rem .55rem;border-radius:8px}
 .reader-site .video-fallback{display:block;padding:.45rem .65rem}
 .reader-site .video-fallback span{display:block;padding-bottom:.35rem}
 .reader-site .video-link-hint{padding:.7rem .8rem}
 body.reader-site[data-section=library] .book-row.library-video{grid-template-columns:58px minmax(0,1fr)}
 body.reader-site[data-section=library] .book-row.library-video:before{height:60px;grid-row:1;background-size:35px,auto}
 body.reader-site[data-section=library] .book-row.library-video>.library-video-info{grid-row:1}
}
@media(max-width:360px){
 body.reader-site[data-section=library] .book-row.library-video{grid-template-columns:45px minmax(0,1fr)}
 body.reader-site[data-section=library] .book-row.library-video:before{height:50px;background-size:29px,auto}
 .reader-site .video-preview[data-provider=instagram] .video-frame{min-height:400px}
}
@media print{.reader-site .video-frame{display:none}.reader-site .video-preview,.reader-site .video-link-hint{box-shadow:none;break-inside:avoid}}
