body {
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #181818;
    color: #ffffff;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
}

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

main {
    padding: 20px;
}

#videoGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    #videoGrid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 601px) and (max-width: 960px) {
    #videoGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#searchResults {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    #searchResults {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 601px) and (max-width: 960px) {
    #searchResults {
        grid-template-columns: repeat(2, 1fr);
    }
}

.videoItem {
    background-color: #202020;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.videoItem:hover {
    transform: translateY(-5px);
}

.thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 0;
    padding-bottom: 150%;
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.networks {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

.networks a {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.dateOverlay {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    color: #ffffff;
}

h3 {
    margin-top: 10px;
    font-size: 16px;
}

p {
    margin-top: 5px;
    font-size: 14px;
    color: #999999;
}

.playIcon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.videoItem:hover .playIcon {
    opacity: 1;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: white;
}

img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

#stream-select {
    display: none;
}

select {
    width: 100%;
    padding: 5px;
    font-size: 16px;
    margin-bottom: 2px;
}

video {
    width: 100%;
    height: auto;
}

#select-container {
    margin-bottom: 20px;
}
