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

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.header-title-link {
    color: inherit;
    text-decoration: none;
}

main {
    padding: 1rem;
    text-align: center;
}

.search-container {
    display: flex;
    align-items: center;
}

#search-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

#search-toggle svg {
    stroke: #fff;
    width: 24px;
    height: 24px;
}

#search-form {
}

#search-input {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 0.5rem;
}

/* A generic utility class to hide elements */
.hidden {
    display: none;
}

.timeline-wrapper {
    position: relative;
}

#timeline-container .google-visualization-timeline {
    cursor: grab;
}

#timeline-container .google-visualization-timeline:active {
    cursor: grabbing;
}

.sidebar {
    position: fixed;
    top: 68px; /* Start below the header */
    right: 0;
    height: calc(100% - 68px); /* Adjust height to fill remaining space */
    width: 320px;
    max-width: 90vw;
    background-color: #fff;
    box-shadow: -3px 0 6px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1.5rem 2rem;
    z-index: 1000;
    color: #333;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.sidebar.visible {
    transform: translateX(0);
}

#sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
}

#sidebar-close:hover {
    color: #333;
}

#sidebar-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

#sidebar-details {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

#sidebar-details .searchmatch {
    font-weight: bold;
}

#sidebar-wiki-link {
    margin-bottom: 1.5rem;
}

#sidebar-wiki-link a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

#sidebar-wiki-link a:hover {
    background-color: #e0e0e0;
}

#streaming-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

#streaming-links li a {
    display: block;
    padding: 0.75rem 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

#streaming-links li a:hover {
    background-color: #f7f7f7;
}

#search-results-container {
    text-align: left;
    margin-top: 2rem;
    padding: 0 1rem;
}

#search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#search-results-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

#search-results-list li:last-child {
    border-bottom: none;
}

#search-results-list li:hover, #search-results-list li.active {
    background-color: #f0f0f0;
}