.video-search-component {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Форма поиска */
.video-search-form {
    margin-bottom: 30px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 18px 140px 18px 16px;
    border: 2px solid white;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    /*border-color: #0066cc;*/
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    right: 10px;
    top: 8px;
    padding: 12px 24px;
    background: rgb(124 150 86);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background: rgb(132, 164, 86);
}

.search-icon {
    width: 16px;
    height: auto;
}

/* Сообщения */
.alert {
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #ffe6e6;
    border: 1px solid #ffcccc;
    color: #cc0000;
    width: 75%;
    font-size: 12px;

}

/* Заголовок результатов */
.results-header {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.results-header h2 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 28px;
}

.search-query-info {
    color: white;
    font-size: 18px;
}

/* Блок с видео */
.video-result-block {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.video-block-header {
    background: #f8f9fa;
    padding: 12px 20px 12px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-title {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.matches-badge {
    background: #0066cc;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    /*font-weight: bold;*/
}

/* Основной контент - две колонки */
.video-content-layout {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 0;
    min-height: 600px;
}

/* Левая колонка - видеоплеер */
.video-player-column {
    background: #fff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e9ecef;
}

.video-player-container {
    /*flex: 1;*/
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    padding: 20px;
}

.video-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
}

.video-info-block {
    background: white;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.video-theme,
.video-speakers,
.video-date {
    margin-bottom: 15px;
}

.video-theme strong,
.video-speakers strong,
.video-date strong {
    color: #333;
    display: inline-block;
    margin-bottom: 5px;
    font-size: 14px;
}

.video-theme span {
    color: #666;
    line-height: 1.4;
    display: inline-block;
}

.speakers-list {
    color: #666;
    line-height: 1.4;
}

/* Правая колонка - транскрипты */
.transcript-column {
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

.transcript-header {
    padding: 10px 20px 10px 20px;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.transcript-header h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.scroll-hint {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.transcript-matches-container {
    flex: 1;
    overflow-y: auto;
    max-height: 530px;
    padding: 0;
}

/* Элементы транскрипта */
.transcript-match-item {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.transcript-match-item:hover {
    background: #f8f9fa;
}

.transcript-match-item.playing {
    background: #e6f7ff;
    border-left: 4px solid #0066cc;
}

.timecode-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timecode-badge {
    background: #0066cc;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.play-from-here {
    background: rgb(124 150 86);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.play-from-here:hover {
    background: rgb(136, 173, 80);
}

.text-content {
    line-height: 1.6;
    color: #333;
}

/* Подсветка найденных слов */
.search-highlight {
    background: #fff3cd !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    color: #856404;
}

/* Отсутствие результатов */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results p {
    margin: 0 0 15px 0;
    font-size: 18px;
}

/* Адаптивность */

@media (max-width: 1200px) {
    .alert-error {
        width: 50%;

    }
}
@media (max-width: 1024px) {
    .video-content-layout {
        grid-template-columns: 1fr;
    }

    .video-player-column {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .transcript-matches-container {
        max-height: 400px;
    }
}

@media (max-width: 768px) {

    .alert-error {
        width: 100%;

    }

    .search-input {
        width: 100%;
        padding: 18px 134px 18px 16px;
        font-size: 16px;
    }

    .search-button {

    }

    .video-search-component {
        padding: 10px;
    }

    .video-block-header {
        /*flex-direction: column;*/
        gap: 10px;
        /*align-items: flex-start;*/
    }

    .video-content-layout {
        min-height: auto;
    }

    .video-player-container {
        padding: 10px;
    }

    .transcript-match-item {
        padding: 15px;
    }

    .timecode-section {
        /*flex-direction: column;*/
        /*align-items: flex-start;*/
        gap: 10px;
    }

    .search-input-group {
        flex-direction: column;
    }
}

/* Стили для скролла */
.transcript-matches-container::-webkit-scrollbar {
    width: 8px;
}

.transcript-matches-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.transcript-matches-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.transcript-matches-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}