.main-content {
    /* Use a column layout for all devices: bio centered at top, video below at equal width */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px 40px;
}

.bio-panel {
    /* make bio take the central top area with a generous width */
    width: 80%;
    max-width: 1000px;
    background-color: rgba(15, 15, 15, 0.95);
    border-radius: 10px;
    padding: 26px;
    color: white;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
    height: auto;
}

.video-container {
    /* match the width of the bio panel and center the video */
    width: 80%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
}

/* small tweaks for very small screens */
@media (max-width: 420px) {
    .bio-panel, .video-container {
        width: 94%;
        padding-left: 12px;
        padding-right: 12px;
    }
    .profile-picture {
        width: 140px;
        height: 140px;
    }
    /* On very small devices, ensure the background scrolls smoothly */
    body {
        background-attachment: scroll !important;
        -webkit-overflow-scrolling: touch;
    }
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid #ffffff;
}

.bio-section {
    margin-bottom: 20px;
}

.bio-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
    border-bottom: 2px solid #444;
    padding-bottom: 5px;
}

.bio-section p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #e0e0e0;
    margin: 0;
}

.attribution {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
}

.attribution a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.attribution a:hover {
    color: white;
    text-decoration: underline;
}

/* Ensure the main element can scroll even if another stylesheet or runtime
   environment sets overflow: hidden on it (fixes deployment where scrollbar
   disappears in some browsers). Keep the background fixed on the body. */
main {
    overflow: visible !important;
}