﻿
/* Зелёная кнопка Jaaj.Club */
.btn-jaaj-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    min-height: 36px;
    background: linear-gradient( to bottom, #198c27 0%, #087018 45%, #00500c 100% );
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #003a0b;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 2px 3px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

    /* Наведение */
    .btn-jaaj-green:hover {
        background: linear-gradient( to bottom, #24a335 0%, #0b8020 50%, #006315 100% );
        color: #ffffff;
        text-decoration: none;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 3px 6px rgba(0,0,0,0.3);
    }

    /* Нажатие */
    .btn-jaaj-green:active {
        transform: translateY(1px);
        background: linear-gradient( to bottom, #00500c, #087018 );
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    }

    /* Клавиатурный фокус */
    .btn-jaaj-green:focus-visible {
        outline: 2px solid #f5b400;
        outline-offset: 3px;
    }

/* Кнопка буктрейлера */
.btn-jaaj-trailer {
    font-size: 15px;
    /*padding: 10px 22px;
    margin-bottom: 10px;*/
}

    /* Значок Play */
    .btn-jaaj-trailer .play-icon {
        font-size: 18px;
        line-height: 1;
    }


/* Контейнер обложки */
.book-cover-stage {
    position: relative;
    width: 300px;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 0;
    box-sizing: border-box;
}

/* Обложка внутри контейнера */
.book .book-cover-stage .book-cover {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Значок Play на обложке */
.book-cover-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

    .book-cover-play:hover {
        background: rgba(0, 100, 20, 0.4);
    }

    .book-cover-play:focus-visible {
        outline: 2px solid #f5b400;
        outline-offset: 3px;
    }


/* Вертикальный видеоплеер 9:16 */
.book-trailer-video {
    position: relative;
    width: 300px;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

    /* YouTube iframe */
    .book-trailer-video iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* Кнопки управления */
.book-trailer-controls {
    text-align: center;
    margin: 12px auto 15px;
}

    /* Для скрытых элементов */
    .book-cover-stage[hidden],
    .book-trailer-video[hidden],
    .book-trailer-controls [hidden] {
        display: none !important;
    }
