/* General body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('https://t4.ftcdn.net/jpg/06/55/50/69/360_F_655506911_1p13PsGKM93SuCePkLUcd75TW1Bzu4jg.jpg');
    background-size: cover;
    background-position: center;
    color: #333;
    opacity: 0.9; /* Lower opacity for the entire body */
}

/* Header styling to mimic Instagram */
header {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header h1 {
    font-family: 'Instagram Sans', sans-serif;
    font-size: 24px;
    color: #262626;
    margin: 0;
    font-weight: 700;
}

header h2 {
    font-size: 14px;
    color: #999;
    margin: 5px 0 0;
    font-weight: 400;
}

/* Back button styling */
.back-button {
    position: absolute;
    left: 10px;
    top: 15px;
    background-color: transparent;
    border: none;
    color: #262626;
    font-size: 18px;
    cursor: pointer;
    outline: none;
}

.back-button:hover {
    opacity: 0.7;
}

/* Main section */
main {
    padding: 20px;
}

/* Instagram-like grid layout for video gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Instagram-like individual video styling */
.video {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.video:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Video title */
h3 {
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
    color: #262626;
    font-weight: 600;
}

/* Video element styling */
video {
    width: 100%;
    border-radius: 0 0 12px 12px;
    display: block;
}

/* Footer */
footer {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #e6e6e6;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header h1 {
        font-size: 20px;
    }

    .video-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    h3 {
        font-size: 12px;
    }
}
