.st-flipbook-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-flipbook-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}

.st-flipbook-close:hover {
    color: #d4af37;
}

.st-flipbook-stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-flipbook-stage > div {
    width: 100%;
    height: 100%;
}

.st-flipbook-loading {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

.st-flipbook-page {
    background: #fff;
    overflow: hidden;
}

.st-flipbook-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

.st-flipbook-missing {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #b9a15c;
    background: #f7f3ea;
}

.st-flipbook-missing .mdi {
    font-size: 3rem;
}

.st-flipbook-toolbar {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 4px 14px;
    z-index: 10001;
}

.st-flipbook-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s;
}

.st-flipbook-btn:hover {
    color: #d4af37;
}

.st-flipbook-pageno {
    color: #fff;
    font-size: 0.9rem;
    min-width: 92px;
    text-align: center;
    user-select: none;
}

/* 品牌經典金 閱讀按鈕（Entry 頁「點擊閱讀電子雜誌」用，自 st-wowbook.css 搬移） */
.btn-wowbook-gold {
    background-color: #d4af37;
    color: #fff !important;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-wowbook-gold:hover, .btn-wowbook-gold:focus {
    background-color: #c5a028;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

@media (max-width: 767px) {
    .st-flipbook-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
    .st-flipbook-toolbar {
        bottom: 8px;
        padding: 2px 10px;
    }
    .st-flipbook-btn {
        font-size: 1.2rem;
    }
}
