/*
Theme Name: KVK Theme
Theme URI: https://knigavkino.ru
Author: Сергей Буров
Description: Тема для сайта "Книга в кино" — каталог экранизированной литературы.
Version: 1.0
Text Domain: kvk-theme
*/
.container-boock {
    width:1200px;
    background-color:transparent;
    margin:20px auto;
    padding:0;
    }
.content-norm-width {
    display:flex;
    background-color:#FFFEFE;
    border: 5px solid #6f3737;
    min-height:700px;
    overflow:hidden;
    text-overflow:ellipsis;
    box-shadow:-14px 4px 21px rgba(0,0,0,0.3), 15px 29px 25px rgba(0,0,0,0.3);
    padding:0 1px;
    }
.article-norm {
    display: flex;
    border-left:5px double #b9b9b9;
    border-right:5px double #b9b9b9;
    }
.column-separator {
    border:1px solid #acabab98;
    box-shadow:0 0 20px 1px rgb(41,40,40);
    margin:-3% 14px;
    }
.sboku {
    width: 520px;
    border-right: 5px double #b9b9b9;
    position: relative;
    padding: 25px;
    }
.book-text { 
    width: 520px;
    padding: 25px;
    border-left: 5px double #b9b9b9;
    position: relative;
    }
.content-label--book {
  background-color: #e3f2fd;
  color: #1565c0;
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
}
.content-label--film {
    background-color: #f3e5f5; 
    color: #7b1fa2;display: block;margin-bottom: 20px;
  font-size: 14px;
}
.content-label {
  padding: 4px 12px 4px 20px;
  border-radius: 20px;
  font-weight: bold;
}
.post-img{float:left;margin:0 19px 10px 0;}
.book-cover{max-width:175px;width:auto;display:block;border:0 solid #bea9a1;height:auto;}
.ntitlen{font-size:22px;/*! margin: -5px 0 -10px; */color: #2c3e50;line-height: 1.2;}
.screen-reader-text{display:none;}

.info-books-text {
    display:inline-block;
    vertical-align:middle;
    width:65%;
    font-size:12px;
    line-height:1.5;
    }

.book-content, .infa-film-content {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.kp-poster {
  float:left;margin:0 19px 10px 0;
}
/* Блок характеристик */
.info-block {
    padding: 5px 0;
}
.info-row {
    display: flex;
    margin-bottom: 8px;
    line-height: 1.4;
}
.info-label {
    font-weight: 600;
    min-width: 110px; /* Ширина колонки с названием */
    flex-shrink: 0;
    color: #333;
}
.info-value {
    flex-grow: 1;
    color: #555;
    font-size: 15px;
}
.movie-title {
    margin-top: 0;
    font-weight: 600;
    line-height: 1.2;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Кнопки действий (Смотреть, Отрывок, Отзывы) */
.book-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.btn-action {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}
.btn-action:hover {
    background: #f5f5f5;
    border-color: #999;
}

.dostup {
  font-weight: 700;
  color: #e56b35;
  margin: 15px 0 0px;
  font-size: 15px;
  text-align: center;
}




/* Плашка "Реклама" под кнопками магазинов */
.store-option {
    font-size: 11px;
    color: #677;
    margin-top: 10px;
    line-height: 1.4;
    margin-bottom: 20px;
}
.store-option:last-child {
    border-bottom: none;
}
.store-option a {
    margin-left: 10px;
    color: #0066cc;
    text-decoration: none;
}




/* Store Buttons Styles */
.store-buttons {
    display: grid;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
}

.store-button {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 11px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    border-left: 3px solid;
}

.store-button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.store-button img {
    margin-right: 5px;
    width: 13px;
    height: 13px;
    border-radius: 3px;
}

/* Цветовые акценты для магазинов */
.store-button:nth-child(1) {
    border-left-color: #FF6B00;
    background-color: #FFF3E0;border-left-width: 2px;
}

.store-button:nth-child(2) {
    border-left-color: #00A550;
    background-color: #E8F5E9;border-left-width: 2px;
}

.store-button:nth-child(3) {
    border-left-color: #1E88E5;
    background-color: #E3F2FD;border-left-width: 2px;
}

.store-button:nth-child(4) {
    border-left-color: #0D47A1;
    background-color: #E8EAF6;border-left-width: 2px;
}

.store-button:nth-child(5) {
    border-left-color: #FF4081;
    background-color: #FCE4EC;border-left-width: 2px;
}

.rating-votes {
    padding-left: 5px;
}


/* --- Сетка для карточек на главной --- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* --- Сама карточка --- */
.book-card {
    display: flex;
    flex-direction: column;
    background: #1e1e24; /* Темный фон как на референсе */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: #555;
}

/* Обложка */
.card-image {
    position: relative;
    padding-top: 130%; /* Пропорции обложки (высота больше ширины) */
    overflow: hidden;
    background: #000;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контентная часть */
.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
    color: #fff;
}

.card-author {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 15px;
}

/* Блок с информацией о фильме */
.card-movie {
    font-size: 13px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 6px;
    margin-top: auto; /* Прижимаем к низу */
}

.movie-label {
    color: #ff9800;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.movie-name {
    color: #ddd;
}

/* Плашка с рейтингом */
.card-rating {
    margin-top: 10px;
}

.rating-badge {
    display: inline-block;
    background: #f5c518; /* Цвет IMDb/Кинопоиска */
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
}


/* =========================================
   НОВЫЕ СТИЛИ ДЛЯ ШАПКИ (в самом конце файла)
   ========================================= */

.site-header {
    background-color: #15171e !important; /* Темный фон */
    color: #fff !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #2a2c35 !important;
    margin-bottom: 30px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Логотип */
.site-logo {
    flex-shrink: 0;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}
.logo-icon-box {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b6b, #e11d48) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
    flex-shrink: 0;
}
.icon-book {
    color: #fff !important;
    width: 22px !important;
    height: 22px !important;
}
.icon-clap {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px !important;
    height: 18px !important;
    background-color: #1e1e24 !important;
    color: #fff !important;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid #333;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}
.logo-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-title {
    font-family: Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: -0.5px;
}
.logo-badge {
    font-family: monospace !important;
    font-size: 9px !important;
    text-transform: uppercase;
    color: #fbbf24 !important;
    background-color: #1e293b !important;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #334155;
}
.logo-desc {
    font-size: 10px !important;
    color: #94a3b8 !important;
    margin-top: 2px;
}

/* Меню */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}
.main-menu li a {
    color: #ccc !important;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none !important;
}
.main-menu li a:hover {
    color: #fff !important;
}

/* Поиск */
.search-form {
    display: flex;
    background: #23252d !important;
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid #333;
}
.search-field {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    outline: none;
    font-size: 14px;
    width: 180px;
}
.search-field::placeholder {
    color: #777 !important;
}
.search-submit {
    background: transparent !important;
    border: none !important;
    color: #888 !important;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 10px;
}


/* =========================================
   ОБНОВЛЕННЫЙ ЛОГОТИП (перебивает старые стили)
   ========================================= */
.logo-title {
    font-family: Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: 2px;
}

.logo-desc {
    font-size: 11px !important;
    color: #94a3b8 !important;
    margin-top: 0;
    display: block;
}

/* Прячем старый бейдж A24xКП, если он вдруг остался в коде */
.logo-badge, .logo-title-row {
    display: none !important; 
}

/* Стили для стандартного логотипа WordPress, если вы его загрузите */
.custom-logo {
    max-height: 50px;
    width: auto;
}


.text-container{height:240px;width:100%;overflow:hidden;position:relative;transition:height .3s ease;padding-bottom:25px;margin-bottom:35px;line-height:1.6;}
.text-container::after{content:'показать все';position:absolute;bottom:0px;right:0;left:0;background:#fff;color:#D4414B;padding:10px 20px;cursor:pointer;z-index:2;border-radius:3px;font-size:14px;letter-spacing:1px;line-height:10px;display:none;font-weight:600;text-align:center;}
.text-container::before{content:'';position:absolute;bottom:0;left:0;right:0;height:70px;background: linear-gradient(to bottom, #ffffffab, #fff);pointer-events:none;display:none;}
.text-container > h3{padding:0;margin:0 0 9px;font-size:21px;}
.text-container.expanded{height:auto;}
.text-container.expanded::after{content:'свернуть';}
.text-container.expanded::before{display:none;background: transparent;}