body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #202020;
    color: white;
    padding: 10px 20px;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.search-bar {
    flex-grow: 1;
    margin: 0 10px;
    padding: 5px;
    border: none;
    border-radius: 4px;
}

.search-button {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

main {
    display: flex;
    height: calc(100vh - 70px);
}

.sidebar {
    width: 200px;
    background-color: #f4f4f4;
    padding: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 10px;
    cursor: pointer;
}

.sidebar li:hover {
    background-color: #ddd;
}

.content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.video-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-card img {
    width: 100%;
    height: auto;
}

.video-card h3 {
    margin: 10px 0;
    font-size: 1em;
}

.video-card p {
    color: #555;
    margin: 0 0 10px;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #202020;
    color: white;
}
a{
    color: #fff;
    text-decoration: none;
}
/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal.visible {
    visibility: visible;
    opacity: 1;
}

.hidden {
    display: none;
}
