/* Optional universal full-page media presentation */

#book .ofwz-cover-overlay[hidden],
#book .ofwz-youtube-text-view[hidden],
#book .ofwz-youtube-presentation[hidden] {
    display:none !important;
}

#book .ofwz-dynamic-cover
.ofwz-cover-text-toggle {
    position:absolute;
    left:8px;
    bottom:8px;
    z-index:8;
    padding:7px 10px;
    color:white;
    background:rgba(0,0,0,.8);
    border:1px solid rgba(255,255,255,.6);
    border-radius:3px;
    cursor:pointer;
    font:600 11px Arial,sans-serif;
}

#book .ofwz-video-background
.ofwz-cover-text-toggle {
    bottom:52px;
}

#book .ofwz-dynamic-cover
.ofwz-cover-overlay-text {
    overflow:auto;
    overscroll-behavior:contain;
}

#book .ofwz-dynamic-cover
.ofwz-cover-background video {
    object-fit:cover !important;
}

#book .ofwz-universal-youtube-page {
    background:#080808 !important;
}

#book .ofwz-universal-youtube-page
.ofwz-fit-content {
    position:relative !important;
    inset:auto !important;
    display:flex !important;
    flex-direction:column !important;
    padding:0 !important;
    margin:0 !important;
    width:100% !important;
    aspect-ratio:3/4;
    overflow:auto !important;
    background:#080808 !important;
}

#book.natural-book
.ofwz-universal-youtube-page .ofwz-fit-content,
#book.enhanced
.ofwz-universal-youtube-page .ofwz-fit-content {
    position:absolute !important;
    inset:0 0 4% 0 !important;
    aspect-ratio:auto;
}

#book .ofwz-universal-youtube-page
.ofwz-youtube-presentation {
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    margin:0;
    border-radius:0;
    overflow:visible;
}

#book .ofwz-universal-youtube-page
.ofwz-youtube-stage {
    flex:1 1 auto;
    width:100%;
    min-height:200px;
    max-height:none !important;
    aspect-ratio:auto !important;
}

#book .ofwz-universal-youtube-page
.ofwz-youtube-actions {
    flex:0 0 auto;
}

#book .ofwz-youtube-text-toolbar {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:7px;
    background:#141414;
    color:white;
}

#book .ofwz-youtube-text-toolbar button {
    padding:7px 12px;
    background:#163d32;
    color:white;
    border:0;
    border-radius:3px;
    font:600 11px Arial,sans-serif;
    cursor:pointer;
}

#book .ofwz-youtube-text-view {
    background:#fffdf7;
    color:#202020;
    padding:6%;
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
}

#book .ofwz-youtube-text-view * {
    color:#202020 !important;
}

.ofwz-autoplay-toolbar {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px;
    margin-bottom:8px;
    font:12px Arial,sans-serif;
}

.ofwz-autoplay-toolbar button {
    padding:8px 12px;
    color:white;
    background:#163d32;
    border:0;
    border-radius:4px;
    cursor:pointer;
}

.ofwz-autoplay-toolbar a {
    color:inherit;
    text-decoration:underline;
}
