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

.container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #444;
}

#search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

#search-box {
    flex-grow: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#search-form button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#search-form button:hover {
    background-color: #0056b3;
}

.result-item {
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.transcript-matches h3 {
    margin-top: 0;
    font-size: 18px;
    color: #555;
}

.transcript-matches ul {
    list-style-type: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.transcript-matches li {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.transcript-matches li:last-child {
    border-bottom: none;
}

.transcript-matches li:hover {
    background-color: #e9f5ff;
}

.timestamp {
    font-weight: bold;
    color: #0056b3;
    display: inline-block;
    width: 70px; /* Adjust as needed */
}
/* Add these new styles to your existing style.css file */

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
}

.pagination-controls button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.pagination-controls button:hover:not(:disabled) {
    background-color: #0056b3;
}

.pagination-controls button:disabled {
    background-color: #c0c0c0;
    cursor: not-allowed;
}

.page-info {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}