﻿.catalogue-page .catalogue-shell {
    background: transparent;
}

.catalogue-page .book-card {
    max-width: 1140px;
    margin: 0 auto;
}

.catalogue-page .book-container {
    position: relative;
    width: 100%;
    height: clamp(520px, 68vh, 760px);
    max-height: 760px;
    aspect-ratio: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalogue-page .book-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 40%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.12) 60%, rgba(255,255,255,0) 100%);
    z-index: 5;
    pointer-events: none;
}

.catalogue-page .flip-book {
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.18), 0 16px 32px rgba(15, 23, 42, 0.12);
    background: #111;
    width: 100% !important;
    height: 100% !important;
    border-radius: 1.5rem;
    overflow: hidden;
}

.catalogue-page .page-component {
    background-color: #111;
    width: 100%;
    height: 100%;
}

.catalogue-page .page-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.catalogue-page .page-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.catalogue-page .controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
    z-index: 10;
}

.catalogue-page .nav-btn,
.catalogue-page .state-btn {
    padding: 0.95rem 2.2rem;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: all 0.25s ease;
}

.catalogue-page .nav-btn {
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
    border-color: rgba(15, 23, 42, 0.12);
}

.catalogue-page .state-btn {
    background: #ef4444;
    color: #ffffff;
    border-color: transparent;
}

.catalogue-page .nav-btn:hover {
    background: rgba(15, 23, 42, 0.16);
}

.catalogue-page .state-btn:hover {
    background: #dc2626;
}

.catalogue-page .controls.is-playing .nav-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.catalogue-page .controls.is-playing #toggleAutoBtn {
    width: auto;
}

@media (max-width: 1024px) {
    .catalogue-page .book-container {
        height: clamp(460px, 60vh, 640px);
    }
}

@media (max-width: 768px) {
    .catalogue-page .book-container {
        aspect-ratio: auto;
        width: 100%;
        height: 62vh;
        min-height: 420px;
    }

    .catalogue-page .book-container::after {
        display: none;
    }
}
