/* =====================================================
   PAGE STYLES (Articles, Videos, 404)
   WCAG 2.1 AA Compliant
   ===================================================== */

/* =====================================================
   ARTICLE PAGE STYLES
   Full article display page with author info and comments
   WCAG 2.1 AA Compliant
   ===================================================== */

.article-page {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0px 4px 20px 0px rgba(209, 209, 209, 0.15);
}

/* Back Button */
.article-back {
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    font-family: inherit;
}

.back-btn:hover {
    background: var(--glass-white);
    color: var(--text-primary);
}

.back-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Article Headline (Pre-title) */
.article-headline {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Article Title */
.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

/* Article Summary/Subtitle */
.article-summary {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

/* Author Section Container */
.article-author-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: 1rem;
    padding: 0 2rem 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Author Info */
.article-author {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* Author Avatar Sizes */
.author-avatar-large {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.author-avatar-medium {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

/* Author Job and Company - secondary text below name in article page */
.article-page .author-job-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

/* Author Tagline */
.author-tagline {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.4;
    margin-top: 0.125rem;
}

/* Publish Date */
.article-publish-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Featured Image - full width edge-to-edge */
.article-featured-image {
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body (Markdown Content) */
.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-primary);
}

.article-body h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem 0;
    color: var(--text-primary);
}

.article-body p {
    margin: 0 0 1.5rem 0;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-body code {
    background: var(--bg-gray-light);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: var(--bg-gray-light);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-body a:hover {
    text-decoration: none;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-body hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2rem 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-body th,
.article-body td {
    border: 1px solid var(--glass-border);
    padding: 0.75rem;
    text-align: left;
}

.article-body th {
    background: var(--bg-gray-light);
    font-weight: 600;
}

/* Author Biography Section */
.author-bio-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.author-bio-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.author-bio-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-bio-text {
    flex: 1;
}

.author-bio-text .author-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-bio-text p {
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Article Labels (below author) */
.article-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0.75rem 0 1.25rem 0;
}

/* Video Labels (below author) */
.video-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0.75rem 0 1.25rem 0;
}

/* =====================================================
   ARTICLE NOT FOUND
   Error state when article doesn't exist
   ===================================================== */

.article-not-found {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0px 4px 20px 0px rgba(209, 209, 209, 0.15);
}

.not-found-content {
    max-width: 400px;
    margin: 0 auto;
}

.not-found-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.not-found-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.not-found-content p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.back-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--primary-color-text);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    transition: opacity 0.2s ease;
    font-family: inherit;
    font-size: 0.9375rem;
}

.back-btn-primary:hover {
    opacity: 0.9;
}

.back-btn-primary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* =====================================================
   ARTICLE PAGE SKELETON
   Loading placeholder while article loads
   ===================================================== */

.article-skeleton .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-back-btn {
    width: 120px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.skeleton-headline {
    width: 100px;
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    width: 80%;
    height: 32px;
    margin-bottom: 1rem;
}

.skeleton-summary {
    width: 100%;
    height: 24px;
    margin-bottom: 0.5rem;
}

.skeleton-summary-short {
    width: 70%;
    height: 24px;
    margin-bottom: 1.5rem;
}

.article-skeleton .article-author-section {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-skeleton .skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-author-info-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.skeleton-author-name {
    width: 150px;
    height: 18px;
}

.skeleton-author-details {
    width: 200px;
    height: 14px;
}

.skeleton-date {
    width: 100px;
    height: 14px;
}

.skeleton-image {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.article-body-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-body {
    width: 100%;
    height: 20px;
}

.skeleton-body-short {
    width: 60%;
    height: 20px;
}

.skeleton-body-medium {
    width: 80%;
    height: 20px;
}

/* Staggered animation for skeleton elements */
.article-skeleton .skeleton:nth-child(2) {
    animation-delay: 0.1s;
}

.article-skeleton .skeleton:nth-child(3) {
    animation-delay: 0.2s;
}

.article-skeleton .skeleton:nth-child(4) {
    animation-delay: 0.3s;
}

/* =====================================================
   ARTICLE PAGE RESPONSIVE
   Mobile and tablet adjustments
   ===================================================== */

@media (max-width: 768px) {
    .article-page {
        padding: 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .article-page .comment-section {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        margin-bottom: -1.5rem;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .article-featured-image {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .article-author-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 0 1.5rem 1.5rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-summary {
        font-size: 1rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.25rem;
    }

    .article-body h3 {
        font-size: 1.125rem;
    }

    .author-bio-content {
        flex-direction: column;
    }

    .author-avatar-large {
        width: 56px;
        height: 56px;
        font-size: 1.125rem;
    }

    .skeleton-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .article-page {
        padding: 1rem;
    }

    .article-page .comment-section {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -1rem;
        padding: 1rem;
    }

    .article-featured-image {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .article-author-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding: 0 1rem 1.5rem 1rem;
    }

    .article-title {
        font-size: 1.375rem;
    }

    .article-summary {
        font-size: 0.9375rem;
    }

    .author-avatar-large {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .author-avatar-medium {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .article-skeleton .skeleton {
        animation: none;
        background: #f0f0f0;
    }

    .back-btn,
    .back-btn-primary {
        transition: none;
    }
}

/* =====================================================
   404 NOT FOUND PAGE
   Full-screen error page for invalid routes.
   WCAG 2.1 AA Compliant
   ===================================================== */

.not-found-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--community-primary, #6A4A9E) 0%, var(--community-accent, #7BCED7) 100%);
    padding: 2rem;
}

.not-found-container {
    position: relative;
    background: var(--bg-white, #ffffff);
    border-radius: 1.5rem;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.25);
    width: 90vw;
    max-width: 420px;
    padding: 2rem 2rem;
    text-align: center;
}

.not-found-header {
    margin-bottom: 1rem;
}

.not-found-logo {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
}

.not-found-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem auto;
    display: block;
}

.not-found-content {
    margin-bottom: 1.5rem;
}

.not-found-code {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--community-primary, #6A4A9E);
    margin: 0 0 0.25rem 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.not-found-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.not-found-message {
    font-size: 0.9375rem;
    color: var(--text-secondary, #4B5563);
    margin: 0;
    line-height: 1.5;
}

.not-found-actions {
    display: flex;
    justify-content: center;
}

.not-found-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    border: none;
    font-family: inherit;
    background: var(--community-primary, #6A4A9E);
    color: var(--community-primary-text, #ffffff);
}

.not-found-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.not-found-btn:focus-visible {
    outline: 3px solid var(--community-primary, #6A4A9E);
    outline-offset: 2px;
}

/* 404 Page Responsive */
@media (max-width: 480px) {
    .not-found-container {
        padding: 1.5rem 1.25rem;
        width: 95vw;
    }

    .not-found-illustration {
        width: 100px;
        height: 100px;
    }

    .not-found-code {
        font-size: 3rem;
    }

    .not-found-title {
        font-size: 1.125rem;
    }

    .not-found-message {
        font-size: 0.875rem;
    }
}

/* 404 Page Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .not-found-btn {
        transition: none;
    }

    .not-found-btn:hover {
        transform: none;
    }
}

/* =====================================================
   VIDEO PAGE STYLES
   Full video display page with player, author info and comments
   WCAG 2.1 AA Compliant
   ===================================================== */

.video-page {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: 0px 4px 20px 0px rgba(209, 209, 209, 0.15);
}

/* Video Headline (Pre-title) */
.video-headline {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Video Title */
.video-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

/* Video Summary/Subtitle */
.video-summary {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

/* Video Author Section Container */
.video-author-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: 1rem;
    padding: 0 2rem 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Video Author Info */
.video-author {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.video-page .author-job-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

/* Video Meta (Date and Type Badge) */
.video-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Publish Date */
.video-publish-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Video Type Badge */
.video-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-type-badge.badge-live {
    background: #dc2626;
    color: #ffffff;
}

.video-type-badge.badge-recording {
    background: var(--primary-color);
    color: var(--primary-color-text);
}

/* Video Player Container - full width edge-to-edge */
.video-player-container {
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: 2rem;
    background: #000000;
    overflow: hidden;
}

/* Video Player Wrapper - 16:9 Aspect Ratio (YouTube, StreamYard, etc.) */
.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Placeholder (for unsupported providers) */
.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

.video-placeholder-overlay i {
    font-size: 3rem;
    opacity: 0.8;
}

.video-placeholder-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 1rem;
}

.video-placeholder-empty i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Video Sign-In Required Overlay (for detail page) */
.video-signin-required {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-signin-required:hover {
    transform: scale(1.01);
}

.video-signin-required:focus {
    outline: 2px solid var(--community-primary);
    outline-offset: 2px;
}

.video-signin-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.video-signin-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.signin-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.2s ease;
}

.video-signin-required:hover .signin-prompt {
    transform: scale(1.05);
}

.signin-prompt i {
    font-size: 3rem;
    color: var(--community-primary);
}

.signin-prompt-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Video Body/Description (Markdown Content) */
.video-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.video-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.video-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-primary);
}

.video-body p {
    margin: 0 0 1.5rem 0;
}

.video-body ul,
.video-body ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.video-body li {
    margin-bottom: 0.5rem;
}

/* Video Tags */
.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Post actions (comment button) in video page - add vertical spacing */
.video-page .post-actions {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Comment section in video page - extend to edges */
.video-page .comment-section {
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
    padding: 1rem 2rem;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* =====================================================
   VIDEO POST STYLES (Feed Item)
   Video thumbnail with play overlay in the feed
   ===================================================== */

/* Video Action Button */
.video-action {
    padding: 1rem 0 2rem 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.video-watch-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    color: var(--primary-color-text);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: inherit;
}

.video-watch-btn:hover {
    transform: translateY(-2px);
}

.video-watch-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Video Thumbnail Container */
.video-thumbnail-container {
    position: relative;
    cursor: pointer;
}

.video-thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Play Button Overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease;
}

.video-thumbnail-container:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.play-button i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 4px; /* Optical centering for play icon */
}

.video-thumbnail-container:hover .play-button {
    transform: scale(1.1);
}

/* Sign-In Overlay Button (for feed videos) */
.signin-overlay-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.2s ease;
}

.video-thumbnail-container:hover .signin-overlay-button {
    transform: scale(1.05);
}

.signin-overlay-button i {
    font-size: 2rem;
    color: var(--community-primary);
}

.signin-overlay-button .signin-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Focus styles for keyboard navigation */
.video-thumbnail-container:focus {
    outline: 2px solid var(--community-primary);
    outline-offset: 2px;
}

/* Inline Video Player (YouTube embed in feed) */
/* Inherits from .post-media: negative margins, aspect-ratio 16/9, min-height */
.video-inline-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Status Badge (in feed) */
.video-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-status-badge.badge-live {
    background: #dc2626;
    color: #ffffff;
}

.video-status-badge.badge-recording {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

/* Video Provider Badge */
.video-provider-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
}

.video-provider-badge .fa-youtube {
    color: #ff0000;
}

/* =====================================================
   VIDEO NOT FOUND
   Error state when video doesn't exist
   ===================================================== */

.video-not-found {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0px 4px 20px 0px rgba(209, 209, 209, 0.15);
}

/* =====================================================
   VIDEO PAGE SKELETON
   Loading placeholder while video loads
   ===================================================== */

.video-skeleton .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.video-skeleton .video-author-section {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.video-skeleton .skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-badge {
    width: 80px;
    height: 24px;
    border-radius: 1rem;
}

/* Video Player Skeleton (16:9 aspect ratio) */
.skeleton-video-player {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0;
}

.video-body-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Staggered animation for video skeleton elements */
.video-skeleton .skeleton:nth-child(2) {
    animation-delay: 0.1s;
}

.video-skeleton .skeleton:nth-child(3) {
    animation-delay: 0.2s;
}

.video-skeleton .skeleton:nth-child(4) {
    animation-delay: 0.3s;
}

/* =====================================================
   VIDEO PAGE RESPONSIVE
   Mobile and tablet adjustments
   ===================================================== */

@media (max-width: 768px) {
    .video-page {
        padding: 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .video-title {
        font-size: 1.5rem;
    }

    .video-summary {
        font-size: 1.125rem;
    }

    .video-author-section {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .video-meta {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .video-player-container {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }

    .video-page .comment-section {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        margin-bottom: -1.5rem;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .play-button {
        width: 56px;
        height: 56px;
    }

    .play-button i {
        font-size: 1.25rem;
    }

    .signin-prompt {
        padding: 1.5rem 2rem;
    }

    .signin-prompt i {
        font-size: 2.5rem;
    }

    .signin-prompt-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-page {
        padding: 1rem;
    }

    .video-title {
        font-size: 1.25rem;
    }

    .video-author-section {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .video-player-container {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .video-page .comment-section {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -1rem;
        padding: 1rem;
    }

    .play-button {
        width: 48px;
        height: 48px;
    }

    .play-button i {
        font-size: 1rem;
    }
}

/* Video Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .video-watch-btn,
    .play-button {
        transition: none;
    }

    .video-watch-btn:hover,
    .video-thumbnail-container:hover .play-button {
        transform: none;
    }
}

/* =====================================================
   MEMBERSHIP ROUTER (Join Community Screen)
   Full-screen prompt for authenticated non-members.
   WCAG 2.1 AA Compliant
   ===================================================== */

.membership-router-screen {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--community-primary, #6A4A9E) 0%, var(--community-accent, #7BCED7) 100%);
    padding: 2rem;
    z-index: 50;
}

.membership-router-container {
    background: var(--bg-white, #ffffff);
    border-radius: 1.5rem;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.25);
    max-width: 75%;
    width: 100%;
    padding: 3rem 2.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

.membership-router-header {
    text-align: center;
    margin-bottom: 2rem;
}

.membership-router-logo {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
}

.membership-router-content {
    margin-bottom: 2rem;
}

.membership-router-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    text-align: center;
}

.membership-router-tagline {
    font-size: 1rem;
    color: var(--text-secondary, #4B5563);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    font-style: italic;
    text-align: center;
}

.membership-router-description {
    font-size: 0.875rem;
    color: var(--text-primary, #1f2937);
    margin: 0 0 1rem 0;
    line-height: 1.7;
    text-align: center;
}

.membership-router-members {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #4B5563);
    margin: 0 0 1.5rem 0;
}

.membership-router-members i {
    color: var(--community-primary, #6A4A9E);
}

.membership-router-message {
    background: rgba(106, 74, 158, 0.08);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.membership-router-message i {
    font-size: 1.25rem;
    color: var(--community-primary, #6A4A9E);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.membership-router-message p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-primary, #1f2937);
    line-height: 1.6;
}

/* Community Rules Section */
.membership-router-rules {
    background: #f9fafb;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: left;
}

.rules-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0 0 0.75rem 0;
}

.rules-heading i {
    color: var(--community-primary, #6A4A9E);
}

.rules-content {
    font-size: 0.875rem;
    color: var(--text-primary, #1f2937);
    line-height: 1.7;
}

.rules-content ul,
.rules-content ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.rules-content li {
    margin-bottom: 0.25rem;
}

.rules-content p {
    margin: 0 0 0.75rem 0;
}

.rules-content p:last-child {
    margin-bottom: 0;
}

/* Action Buttons */
.membership-router-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.membership-router-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px;
    border: none;
    font-family: inherit;
}

.membership-router-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.membership-router-btn-primary {
    background: var(--community-primary, #6A4A9E);
    color: var(--community-primary-text, #ffffff);
}

.membership-router-btn-primary:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.membership-router-btn-secondary {
    background: transparent;
    color: var(--text-secondary, #4B5563);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.membership-router-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary, #1f2937);
}

.membership-router-btn:focus-visible {
    outline: 3px solid var(--community-primary, #6A4A9E);
    outline-offset: 2px;
}

/* Error Message */
.membership-router-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 0.5rem;
    color: #dc3545;
    font-size: 0.875rem;
}

/* Membership Router Responsive */
@media (max-width: 768px) {
    .membership-router-container {
        max-width: 95%;
        padding: 2rem 1.5rem;
    }

    .membership-router-title {
        font-size: 1.5rem;
    }

    .membership-router-actions {
        flex-direction: column;
    }
}

/* Membership Router Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .membership-router-btn {
        transition: none;
    }

    .membership-router-btn-primary:hover:not(:disabled) {
        transform: none;
    }
}

/* =====================================================
   LABEL PAGE STYLES
   Label-filtered content page
   WCAG 2.1 AA Compliant
   ===================================================== */

/* Label Header Section */
.label-header {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0px 4px 20px 0px rgba(209, 209, 209, 0.15);
}

.label-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.label-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
}

.label-description {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn-back-to-feed {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    transition: background-color 0.2s, color 0.2s;
    font-family: inherit;
}

.btn-back-to-feed:hover {
    background: var(--primary-color);
    color: var(--primary-color-text);
}

.btn-back-to-feed:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Label Not Found Section */
.label-not-found {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0px 4px 20px 0px rgba(209, 209, 209, 0.15);
}

.label-not-found p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Feed Loading State */
.feed-loading {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0px 4px 20px 0px rgba(209, 209, 209, 0.15);
}

.feed-loading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Mobile Navigation Filter Tabs (for header mobile menu) */
.mobile-nav-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav-filter-tab:hover,
.mobile-nav-filter-tab:focus {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-filter-tab.active {
    background: var(--community-primary, #6A4A9E);
    color: var(--community-primary-text, #ffffff);
}

.mobile-nav-filter-tab .filter-label {
    font-weight: 500;
}

/* Label Page Responsive */
@media (max-width: 768px) {
    .label-header {
        padding: 1.25rem 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .label-not-found {
        padding: 2rem 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .feed-loading {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 480px) {
    .label-header {
        padding: 1rem;
    }

    .label-title {
        font-size: 1.125rem;
    }

    .label-badge {
        font-size: 0.875rem;
        padding: 0.375rem 1rem;
    }
}

/* Label Page Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-back-to-feed,
    .mobile-nav-filter-tab {
        transition: none;
    }
}

