﻿.emag-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f2447;
}

.emag-card {
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 36, 71, 0.06);
}

.emag-thumb {
    display: block;
    background: #f5f7fb;
    overflow: hidden;
}

.emag-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #fff;
    display: block;
}

.emag-body {
    padding: 14px;
}

.emag-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 0.85rem;
}

.emag-card-title {
    margin: 10px 0 8px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.emag-card-title a {
    color: #111111;
    text-decoration: none;
}

.emag-card-title a:hover {
    text-decoration: underline;
}

.emag-desc {
    color: #475569;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.emag-viewer {
    overflow: hidden;
    background: transparent;
    min-height: 70vh;
}

.emag-hidden-meta {
    display: none !important;
}

body.emag-fullscreen-body {
    margin: 0;
    overflow: hidden;
}

body.emag-fullscreen-body .news-header-wrap,
body.emag-fullscreen-body .footer-bottom,
body.emag-fullscreen-body #scroll {
    display: none !important;
}

body.emag-fullscreen-body #page_wrapper {
    min-height: 100vh;
}

.emag-full-page {
    margin: 0;
    padding: 0;
}

.emag-full-page .emag-viewer {
    min-height: 100vh;
}

.emag-html5-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: max(60%, 324px);
}

.emag-html5-embed iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.emag-full-page .emag-html5-embed {
    height: 100vh;
    height: 100dvh;
    min-height: 640px;
    padding-top: 0;
}

.emag-flipbook {
    position: relative;
    background: #4b4b4b;
    color: #fff;
    min-height: 78vh;
    padding: 34px 54px 64px;
    overflow: hidden;
}

.emag-flipbook-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68vh;
}

.emag-flipbook-book {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.emag-flip-page {
    position: relative;
    background: #fff;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.emag-flip-page canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.emag-flip-link {
    position: absolute;
    display: block;
    z-index: 6;
    background: rgba(0, 0, 0, 0);
}

.emag-flip-link:hover {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
}

.emag-flip-nav {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 44px;
    height: 76px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.emag-flip-nav:hover {
    color: #fff;
}

.emag-flip-prev {
    left: -44px;
}

.emag-flip-next {
    right: -44px;
}

.emag-flip-toolbar {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    z-index: 24;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.emag-flip-btn {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
}

.emag-flip-btn:hover {
    color: #fff;
}

.emag-flip-counter {
    min-width: 82px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.emag-flip-status {
    position: absolute;
    left: 24px;
    top: 18px;
    z-index: 25;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.emag-flipbook.is-ready .emag-flip-status {
    display: none;
}

.flipbook-shell {
    background: #f2f2f2;
    border-radius: 12px;
    padding: 14px;
    position: relative;
}

.flipbook-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.flipbook-top-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.04em;
}

.flipbook-top-icons {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.flipbook-top-search {
    min-width: 36px;
    display: inline-flex;
    justify-content: flex-end;
}

.flipbook-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #596273;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.flipbook-icon-btn:hover {
    background: #e7ebf2;
    color: #1f2937;
}

.flipbook-side-arrow {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #5b6472;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    z-index: 15;
}

.flipbook-side-arrow.left {
    left: 8px;
}

.flipbook-side-arrow.right {
    right: 8px;
}

.flipbook-side-arrow:hover {
    background: #ffffff;
    color: #1f2937;
}

.flipbook-stage {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    min-height: 70vh;
    padding: 0;
}

.flipbook-container {
    width: 100%;
    height: 70vh;
}

.flipbook-bottombar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.flipbook-counter {
    min-width: 90px;
    color: #6b7280;
    font-size: 0.95rem;
}

.flipbook-slider {
    flex: 1;
}

.emag-pdf-frame {
    width: 100%;
    min-height: 80vh;
    border: 0;
    display: block;
    background: #fff;
}

.flipbook-stage.is-loading {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .emag-title {
        font-size: 1.5rem;
    }

    .emag-viewer,
    .flipbook-stage,
    .emag-pdf-frame {
        min-height: 60vh;
    }

    .emag-full-page .emag-viewer {
        min-height: 100vh;
    }

    .emag-full-page .emag-html5-embed {
        height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
    }

    .emag-flipbook {
        min-height: 72vh;
        padding: 18px 14px 58px;
    }

    .emag-flipbook-stage {
        min-height: 62vh;
    }

    .emag-flip-nav {
        width: 36px;
        height: 56px;
        font-size: 1.7rem;
        background: rgba(0, 0, 0, 0.16);
    }

    .emag-flip-prev {
        left: -10px;
    }

    .emag-flip-next {
        right: -10px;
    }

    .emag-flip-toolbar {
        left: 10px;
        right: 10px;
        bottom: 12px;
        gap: 8px;
        justify-content: center;
    }

    .emag-flip-btn {
        width: 30px;
        height: 30px;
    }

    .flipbook-container {
        height: 60vh;
    }

    .flipbook-topbar {
        justify-content: center;
    }

    .flipbook-side-arrow {
        width: 36px;
        height: 36px;
    }

    .flipbook-bottombar {
        flex-wrap: wrap;
    }
}
