    /* Основные настройки контейнера */
* {
    box-sizing: border-box; /* Гарантирует, что border-left не увеличивает ширину */
}

.hb-word:hover .tooltip {
    z-index: 9999 !important; /* Максимальный приоритет */
}
#prayer-content {
    width: 100%;
    overflow-x: hidden; /* Запрещаем горизонтальную прокрутку на корню */
    padding: 10px;      /* Даем небольшой отступ от краев экрана */
}
    .prayer-container { 
        max-width: 900px; 
        margin: 40px auto; 
        padding: 0 20px; 
        color: white; /* Весь текст по умолчанию светлый */
    }


    /* Стили для пояснительного текста (инструкций) */
  .instruction-block {
    text-align: center;
    margin: 20px auto 40px;
    padding: 25px;
    background: rgba(211, 84, 0, 0.07); /* Совсем легкий оранжевый оттенок фона */
    border-radius: 12px;
    border: 1px solid rgba(211, 84, 0, 0.2); /* Тонкая рамка вместо одной полосы слева */
    max-width: 800px;
}

.instruction-block p { 
    font-style: normal; /* Убираем курсив */
    color: #e0e0e0;     /* Делаем текст почти белым для контраста */
    font-size: 1.2rem;  /* Увеличиваем размер */
    line-height: 1.6;   /* Увеличиваем межстрочный интервал */
    margin: 0;
}

/* Название заголовка внутри инструкции (если используешь h2 или h3) */
.instruction-block .section-title {
    color: #ff851b;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.prayer-row { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    position: relative;
    overflow: visible !important;
    background: rgba(255, 255, 255, 0.02); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border-radius: 20px;
    /* Вместо width: 100% используем такой подход, чтобы был запас */
    width: 100%;
    max-width: 850px; 
    margin: 0 auto; 
    padding: 60px 20px;

    /* Резервируем место под оранжевую полоску заранее, чтобы блок не дергался */
    border-left: 3px solid transparent; 
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff !important;
}

.prayer-row.active-reading {
    background: rgba(255, 255, 255, 0.12) !important;
    border-left: 3px solid #d35400 !important;
    
    /* УБИРАЕМ translateX, так как он физически сдвигает блок вправо за экран */
    /* Оставляем только очень легкий scale, если он нужен */
    transform: scale(1.01); 
}

/* --- ЛОГИКА СКЛЕИВАНИЯ --- */

/* Убираем нижние углы у всех, кроме последнего в группе */
.prayer-row:not(:last-child) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Убираем верхние углы у тех, кто идет сразу за другим блоком */
.prayer-row + .prayer-row {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -1px; /* Стык в стык */
}

/* Маскировка линии стыка */
.prayer-row:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 4px; /* Чуть отступаем от оранжевой линии */
    right: 1px;
    height: 2px;
    background: rgba(255, 255, 255, 0.03); 
    z-index: 2;
}

/* Блок-разрыв (когда hr: true) */
.spacer-hr {
    height: 20px; 
    display: block;
    clear: both;
}

    .hebrew { 
        font-family: 'Assistant', sans-serif; 
        font-size: 2.1rem;
        color: #ffffff; 
        direction: rtl; 
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    .translit { 
        font-size: 1.3rem; 
        color: #ff851b; /* Более яркий оранжевый для черного фона */
        font-weight: bold; 
        margin: 15px 0 5px 0;
        letter-spacing: 0.5px;
    }

    .translation { 
        font-size: 1.2rem; 
        color: #ecf0f1; 
        font-family: 'Playfair Display', serif; 
        max-width: 80%;
    }

    .section-title { 
        text-align: center; 
        color: #d35400; 
        margin-bottom: 10px; 
        font-family: 'Playfair Display', serif; 
        font-size: 2rem;
    }
	/* Стили для выбора молитв */
.prayer-navigation {
    margin: 20px auto 40px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

.nav-title {
    font-family: 'Playfair Display', serif;
    color: #bdc3c7;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 5px;
    background: rgba(211, 84, 0, 0.1); /* Прозрачный оранжевый */
    border: 1px solid rgba(211, 84, 0, 0.3);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #d35400;
    color: white;
    border-color: #d35400;
}

/* Компактный переключатель молитв */
.prayer-selector {
    text-align: center;
    margin: 20px 0 30px 0;
}

.custom-select {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 10px 20px;
    border: 1px solid #d35400;
    border-radius: 25px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    appearance: none; /* Убираем стандартную стрелку браузера */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d35400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
    transition: all 0.3s ease;
}

.custom-select:hover {
    border-color: #ff851b;
    box-shadow: 0 0 10px rgba(211, 84, 0, 0.3);
}
/* Стиль для слов, которые можно перевести */
/* Базовое слово */
.hb-word {
    cursor: help;
    border-bottom: 2px dotted rgba(211, 84, 0, 0.5);
    transition: all 0.2s;
    position: relative;
    display: inline-block;
    padding: 0 2px;
}

.hb-word:hover {
    background: rgba(211, 84, 0, 0.15);
    border-bottom: 2px solid #ff851b;
    border-radius: 4px;
    /* Это заставит всё слово вместе с его подсказкой выпрыгивать вперед */
    z-index: 1000 !important; 
}

/* Контейнер подсказки */
.hb-word .tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50; /* Темный фон, чтобы выделялся */
    border: 1px solid #d35400;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', sans-serif;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Треугольничек внизу подсказки */
.hb-word .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #d35400 transparent transparent transparent;
}

.hb-word:hover .tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 140%;
}

/* Стили внутри подсказки */
.tooltip-translit {
    color: #ff851b; /* Оранжевый для произношения */
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4px;
}

.tooltip-translation {
    color: #ecf0f1; /* Белый для перевода */
    display: block;
    font-style: italic;
}