body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #333;
    font-size: 2.5em;
    margin: 0;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

#searchInput {
    flex: 1;
    max-width: 500px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
}

#searchInput:focus {
    border-color: #007bff;
}

#searchButton {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchButton:hover {
    background-color: #0056b3;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.results-container {
    margin-top: 20px;
}

.results-header {
    margin-bottom: 20px;
}

.results-header h2 {
    color: #333;
    font-size: 1.5em;
}

.result-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.result-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.result-text {
    flex: 1;
}

.result-text h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.transcript-text {
    margin: 10px 0;
    line-height: 1.6;
    color: #555;
    font-size: 1.1em;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.result-metadata {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    flex-wrap: wrap;
}

.score {
    font-weight: bold;
    color: #007bff;
}

.timestamp {
    color: #28a745;
}

.video-id {
    color: #6c757d;
}

.video-embed {
    flex-shrink: 0;
}

.video-embed iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-results {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-top: 40px;
    padding: 40px;
    background: white;
    border-radius: 8px;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #searchInput {
        max-width: none;
        margin-bottom: 10px;
    }
    
    .result-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-embed {
        align-self: center;
    }
    
    .video-embed iframe {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }
    
    .result-metadata {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .result-item {
        padding: 15px;
    }
    
    .result-text h3 {
        font-size: 1.1em;
    }
    
    .transcript-text {
        font-size: 1em;
    }
    
    .video-embed iframe {
        height: 150px;
    }
}

/* Pagination Styles */
.pagination-container {
    margin: 30px 0;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
}

.page-btn:hover:not(.active) {
    background: #f5f5f5;
    border-color: #ccc;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.prev-btn, .next-btn {
    font-weight: 500;
}

.ellipsis {
    padding: 8px 4px;
    color: #6c757d;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.results-info {
    color: #666;
    font-size: 16px;
    margin-top: 5px;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 3px;
    }

    .page-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 32px;
    }

    .prev-btn, .next-btn {
        padding: 6px 10px;
    }
}


.search-container {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.search-options {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-options label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

#maxResultsSelect {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

#maxResultsSelect:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-options {
        justify-content: center;
    }
}

