/* Catalogue — immersive flipbook reader */
.catalogue-book-section {
    background: linear-gradient(165deg, #0c0c0c 0%, #151515 45%, #0a0a0a 100%);
    padding: 48px 0 80px;
    position: relative;
    overflow: hidden;
}
.catalogue-book-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 50% 30%, rgba(200, 35, 42, 0.08), transparent 60%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.5), transparent 50%);
    pointer-events: none;
}

.catalogue-stage {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.catalogue-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.catalogue-toolbar-copy {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    max-width: 420px;
    line-height: 1.6;
}
.catalogue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.catalogue-sound-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 108px;
    justify-content: center;
}
.catalogue-sound-icon { font-size: 1rem; line-height: 1; }
.catalogue-sound-off { display: none; }
.catalogue-sound-btn.is-muted .catalogue-sound-on { display: none; }
.catalogue-sound-btn.is-muted .catalogue-sound-off { display: inline; }
.catalogue-sound-label { font-size: 0.8125rem; }
.catalogue-book-section .btn-outline {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}
.catalogue-book-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Loading state */
.catalogue-loading {
    text-align: center;
    padding: 80px 24px;
    color: rgba(255, 255, 255, 0.7);
}
.catalogue-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: catalogueSpin 0.9s linear infinite;
}
@keyframes catalogueSpin { to { transform: rotate(360deg); } }
.catalogue-loading-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
}
.catalogue-loading-progress {
    width: min(320px, 100%);
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 20px auto 12px;
    overflow: hidden;
}
.catalogue-loading-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
    transition: width 0.3s ease;
}
.catalogue-loading-meta { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.45); }

/* Book container */
.catalogue-book-wrap {
    perspective: 2400px;
    margin: 0 auto 24px;
}
.catalogue-book-shell {
    position: relative;
    margin: 0 auto;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.65));
}
.catalogue-book-shell::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 24px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
    pointer-events: none;
}
.catalogue-book {
    margin: 0 auto;
}
.catalogue-book .page {
    background: #fff;
    overflow: hidden;
}
.catalogue-book .page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}
.catalogue-book .page--cover {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}
.catalogue-book .page--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    color: #999;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Controls */
.catalogue-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    max-width: 560px;
    margin: 0 auto 24px;
}
.catalogue-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-luxury);
}
.catalogue-nav-btn:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}
.catalogue-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.catalogue-page-info {
    min-width: 100px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}
.catalogue-page-info small {
    display: block;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    font-weight: 400;
}
.catalogue-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    margin-bottom: 32px;
}

.catalogue-info {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    line-height: 1.7;
}
.catalogue-info a { color: var(--accent-light); }

.catalogue-book-section .page-hero.compact {
    background: transparent;
    padding-bottom: 0;
}
.catalogue-book-section .page-hero.compact .page-title { color: #fff; }
.catalogue-book-section .page-hero.compact .page-desc { color: rgba(255, 255, 255, 0.6); }
.catalogue-book-section .breadcrumb { color: rgba(255, 255, 255, 0.45); }
.catalogue-book-section .breadcrumb a:hover { color: var(--accent-light); }

/* Fullscreen mode */
.catalogue-stage:fullscreen,
.catalogue-stage:-webkit-full-screen {
    background: #0a0a0a;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.catalogue-stage:fullscreen .catalogue-book-wrap,
.catalogue-stage:-webkit-full-screen .catalogue-book-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .catalogue-book-section { padding: 32px 0 56px; }
    .catalogue-toolbar { flex-direction: column; align-items: stretch; text-align: center; }
    .catalogue-toolbar-copy { max-width: none; }
    .catalogue-actions { justify-content: center; }
    .catalogue-controls { border-radius: var(--radius-lg); max-width: none; }
    .catalogue-hint { display: none; }
}
