/* Fixed footer default for video-style pages */
.content-area {
    padding-bottom: 80px;
}

.footer-bar {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 12px 20px;
    z-index: 10;
}

/* Keep footer in normal flow on long-list pages (no overlap) */
body.footer-in-flow .content-area {
    padding-bottom: 0;
}

body.footer-in-flow .footer-bar {
    position: static;
    left: auto;
    right: auto;
    margin-left: var(--sidebar-width);
    padding-top: 36px;
}

.footer-bar__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.footer-bar__item {
    margin: 0;
}

.footer-bar__link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bar__link:hover,
.footer-bar__link:focus-visible {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.footer-bar__link:focus {
    outline: none;
}

.footer-bar__link:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/*
 * Mobile override: on small screens the sidebar collapses and content stacks
 * vertically, so a fixed footer would overlap important content (e.g. the
 * "Already have an account?" link on register.php, or the bottom of the
 * video detail page). Force the footer into normal flow on mobile.
 */
@media (max-width: 768px) {
    .footer-bar {
        position: static;
        left: auto;
        right: auto;
        margin-left: 0;
        padding-top: 24px;
    }

    .content-area {
        padding-bottom: 0;
    }
}


