/* ---- Book graphic + play button overlay ---- */
.book-trailer {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    cursor: pointer;
}
.book-trailer img {
    display: block;
    max-width: 100%;
    height: auto;
}
.book-trailer .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 3px solid #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    pointer-events: none; /* the whole image is the click target */
}
.book-trailer .play-btn svg {
    width: 34px;
    height: 34px;
    margin-left: 5px; /* optical centring of the triangle */
    fill: #fff;
}
.book-trailer:hover .play-btn,
.book-trailer:focus-visible .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.75);
}
.book-trailer:focus-visible {
    outline: 3px solid var(--trailer-link-color, #1a5fb4);
    outline-offset: 4px;
}

/* ---- "Watch The Book Trailer" text link ---- */
.book-trailer-text {
    margin: 12px 0 0;
    text-align: center;
}
.book-trailer-text a {
    /* JS below copies the exact blue from the existing Amazon/Bookshop links */
    color: var(--trailer-link-color, inherit);
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .book-trailer .play-btn {
        width: 64px;
        height: 64px;
        border-width: 2px;
    }
    .book-trailer .play-btn svg {
        width: 26px;
        height: 26px;
        margin-left: 4px;
    }
    .fancybox__container .fancybox__slide {
        padding: 48px 8px; /* video uses almost the full screen width */
    }
}