body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

h1 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.acceptance-btn {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 15px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.acceptance-btn:active {
    background-color: #1565c0;
}

.tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.tab-btn.active {
    border-bottom-color: #31b545;
    font-weight: bold;
    color: #31b545;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

#addressInput, #problemInput, #videoInput {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

#searchBtn, #problemSearchBtn, #videoSearchBtn {
    padding: 12px 20px;
    background-color: #31b545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

#searchBtn:active, #problemSearchBtn:active, #videoSearchBtn:active {
    background-color: #2a9c3d;
}

.results {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-height: 60vh;
    overflow-y: auto;
}

.results-count {
    padding: 12px 15px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.gln-result, .problem-result, .video-result {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.gln-result:last-child, .problem-result:last-child, .video-result:last-child {
    border-bottom: none;
}

.address, .problem-title, .video-title {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: bold;
}

.problem-title, .video-title {
    color: #1976d2;
}

.problem-desc {
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
}

.problem-keywords {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.solution-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #31b545;
}

.problem-solution {
    /* существующие стили */
    cursor: pointer;
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
    border-left: 3px solid #31b545;
}

.problem-solution:hover {
    background-color: #f0f0f0;
}

.solution-emoji {
    font-size: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.solution-step {
    font-size: 16px;
    margin-right: 5px;
    vertical-align: middle;
    color: #1976d2;
}

.highlight {
    background-color: #fff9c4;
    padding: 0 2px;
    border-radius: 3px;
}

.info-message, .error-message {
    padding: 15px;
    text-align: center;
    color: #666;
}

.error-message {
    color: #d32f2f;
}

.gln {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.gln:hover {
    color: #31b545;
}

.gln strong {
    cursor: pointer;
    color: #31b545;
    padding: 2px 4px;
    border-radius: 3px;
}

.gln strong:hover {
    background-color: #e8f5e9;
}

.toast-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast-message.show {
    opacity: 1;
}

.problem-header {
    padding: 15px;
    cursor: pointer;
}

.problem-result {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.problem-result:hover {
    background-color: #f5f5f5;
}

.all-problems .problem-result {
    padding: 0;
}

.solution-container {
    display: none;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.problem-result.active .solution-container {
    display: block;
}
.video-header {
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.video-header:hover {
    background-color: #f5f5f5;
}

.video-container {
    display: none;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.video-player {
    width: 100%;
    max-height: 300px;
    background-color: #000;
    border-radius: 8px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .video-player {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .fullscreen-btn {
        font-size: 12px;
        padding: 6px;
    }
}

.hidden {
    display: none;
}
.visible {
    display: block;
}
.solution-container-hidden {
    display: none;
}

.solution-container-visible {
    display: block;
}

.video-container-hidden {
    display: none;
}

.video-container-visible {
    display: block;
}

.active-solution {
    background-color: #f5f5f5;
}

.active-solution .solution-container {
    display: block;
}

.fullscreen-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

.fullscreen-btn:hover {
    background-color: #1565c0;
}
/* Стили для полноэкранного видео */
:-webkit-full-screen .video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
}

:-moz-full-screen .video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
}

:-ms-fullscreen .video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
}

:fullscreen .video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: black;
}