/* Basic Reset */
body {
    font-family: Arial, sans-serif;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: url('https://rockninboston.com/bricks2.png') fixed;
    background-size: cover;
    color: #000;
}

header {
    text-align: center;
    background-color: #222;
    color: black;
    padding: 20px 0;
}

/* Subscribe Button */
.subscribe-button {
    background-color: #BA4242<-- This is the non-hover color */
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.subscribe-button:hover {
    background-color: #6C3D3D; /* deeper red on hover */
}

#video-player-container {
    margin: 20px auto;
    max-width: 860px;
}

#search-section {
    text-align: center;
    margin: 20px 0;
}

#search-bar {
    padding: 10px;
    width: 60%;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#video-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 0px;
    margin: 0;
    width: 100vw !important;
    max-width: none !important;
    box-sizing: border-box;
}

.video-item {
    background: rgba(0, 255, 0, 0.1);
    border: none;
    padding: 0px;
    box-shadow: none;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.video-item:hover {
    transform: scale(1.2);
}

.video-item img.video-thumbnail {
    width: 150px;
    height: 90px;
    border-radius: 4px;
    object-fit: contain;
}

.video-item p {
    color: yellow;
    text-align: center;
    margin-top: 8px;
    font-size: 0.95em;
    text-shadow: 0 1px 2px #000;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Pagination */
#pagination {
    text-align: center;
    margin: 30px 0;
}

#pagination button {
    background: #444;
    color: yellow;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#pagination button:hover {
    background-color: #666;
}

footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #video-player-container iframe {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    #video-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-items: center;
    }

    .video-item img.video-thumbnail {
        width: 100%;
        max-width: 150px;
        height: auto;
    }
}

.random-videos {
    width: 20%;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    background-color: transparent; /* Set background to transparent */
}


.video-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-height: 600px; /* Adjust to control how many rows are shown */
    overflow-y: scroll;
    padding-right: 10px; /* Adds space for the scrollbar */
}
