@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lcdo7z9xd2.bundle.scp.css';

/* /Components/Pages/Home.razor.rz.scp.css */
.main-layout[b-ywsqcdvoyh] {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.content-area[b-ywsqcdvoyh] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.header-section[b-ywsqcdvoyh] {
    flex-shrink: 0;
    padding: 8px 16px;
    overflow: visible;
    position: relative;
    z-index: 9000;
    background: var(--fill-color);
    border-bottom: 1px solid var(--neutral-stroke-divider);
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hide header in fullscreen mode */
.main-layout.fullscreen-mode .header-section[b-ywsqcdvoyh] {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

/* Adjust streams section in fullscreen to use full height */
.main-layout.fullscreen-mode .streams-section[b-ywsqcdvoyh] {
    padding-top: 0;
}

.app-title[b-ywsqcdvoyh] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Buy Me a Coffee support link */
.bmc-link[b-ywsqcdvoyh] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    background-color: #FFDD00;
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.bmc-link:hover[b-ywsqcdvoyh] {
    filter: brightness(0.94);
}

/* FluentToolbar optimizations */
fluent-toolbar[b-ywsqcdvoyh] {
    flex: 1;
    justify-content: flex-end;
}

/* Universal input styling */

.universal-input-container[b-ywsqcdvoyh] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.universal-input-container fluent-text-field[b-ywsqcdvoyh] {
    flex: 1;
}

.universal-input[b-ywsqcdvoyh] {
    width: 350px;
}

/* FluentSelect dropdown z-index fixes */
fluent-select .fluent-select-dropdown[b-ywsqcdvoyh],
fluent-select[b-ywsqcdvoyh]::part(control),
fluent-select[b-ywsqcdvoyh]::part(listbox),
fluent-listbox[b-ywsqcdvoyh],
.fluent-select-overlay[b-ywsqcdvoyh],
[role="listbox"][b-ywsqcdvoyh] {
    z-index: 9999 !important;
    position: relative !important;
}

/* Override any container that might clip the dropdown */
.header-section[b-ywsqcdvoyh] {
    overflow: visible !important;
    position: relative !important;
}

.streams-section[b-ywsqcdvoyh] {
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 16px;
}

/* Manage Streams Dialog */
[b-ywsqcdvoyh] .stream-item {
    padding: 12px;
    margin: 0;
    border-radius: 6px;
    border: 1px solid var(--neutral-stroke-divider);
}

[b-ywsqcdvoyh] .stream-item:hover {
    background-color: var(--neutral-fill-stealth-hover);
}

[b-ywsqcdvoyh] fluent-dialog {
    --dialog-width: 480px;
    --dialog-height: auto;
    --dialog-max-height: 70vh;
}

[b-ywsqcdvoyh] fluent-dialog fluent-dialog-body {
    max-height: 400px;
    overflow-y: auto;
}

/* Mobile responsive styles */
@media (max-width: 968px) {
    .header-section fluent-stack[b-ywsqcdvoyh] {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-section fluent-stack:first-child[b-ywsqcdvoyh] {
        align-self: center;
    }

    fluent-toolbar[b-ywsqcdvoyh] {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .universal-input[b-ywsqcdvoyh] {
        width: 200px !important;
    }
}

@media (max-width: 768px) {
    .main-layout.with-chat-pane[b-ywsqcdvoyh] {
        flex-direction: column;
    }

    .main-layout.with-chat-pane .chat-pane[b-ywsqcdvoyh] {
        width: 100%;
        height: 300px;
    }

    fluent-toolbar[b-ywsqcdvoyh] {
        gap: 4px;
    }

    .universal-input[b-ywsqcdvoyh] {
        width: 160px !important;
    }
}
/* /Components/Shared/ChatPane.razor.rz.scp.css */
.chat-header[b-15a58toq8j] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.chat-controls[b-15a58toq8j] {
    display: flex;
    gap: 4px;
}

.chat-settings[b-15a58toq8j] {
    padding: 16px;
}

.chat-content[b-15a58toq8j] {
    height: 100%;
    overflow: hidden;
}

.no-streams[b-15a58toq8j] {
    padding: 20px;
    text-align: center;
}

/* Additional chat pane constraints */
.chat-pane[b-15a58toq8j] {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    flex-grow: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.chat-pane fluent-card[b-15a58toq8j] {
    flex: 1;
    height: 100%;
}
/* /Components/Shared/ManageStreamsDialog.razor.rz.scp.css */
.manage-streams-content[b-f1pr9444eq] {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.streams-list[b-f1pr9444eq] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.stream-item[b-f1pr9444eq] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 1px solid var(--neutral-stroke-divider-rest);
    border-radius: 6px;
    background: var(--neutral-fill-secondary-rest);
}

.stream-item:hover[b-f1pr9444eq] {
    background: var(--neutral-fill-secondary-hover);
}

.stream-info[b-f1pr9444eq] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.empty-message[b-f1pr9444eq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}
/* /Components/Shared/RecentPicker.razor.rz.scp.css */
.recent-picker[b-0nj8qre29c] {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 560px;
}

.recent-heading[b-0nj8qre29c] {
    text-align: center;
    margin-bottom: 4px;
}

.recent-loading[b-0nj8qre29c] {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.recent-group[b-0nj8qre29c] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-group-title[b-0nj8qre29c] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.recent-row[b-0nj8qre29c] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--neutral-stroke-divider);
    background: var(--neutral-fill-stealth-rest);
}

.recent-row:hover[b-0nj8qre29c] {
    background: var(--neutral-fill-stealth-hover);
}

.recent-platform-icons[b-0nj8qre29c] {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 24px;
}

.recent-platform-icons[b-0nj8qre29c]  img,
.recent-platform-icons[b-0nj8qre29c]  svg {
    width: 18px;
    height: 18px;
}

.recent-meta[b-0nj8qre29c] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.recent-name[b-0nj8qre29c] {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-sub[b-0nj8qre29c] {
    font-size: 0.8em;
    color: var(--neutral-foreground-hint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-actions[b-0nj8qre29c] {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.empty-content[b-0nj8qre29c] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
/* /Components/Shared/StreamCard.razor.rz.scp.css */
.stream-header[b-t4ez1gfp27] {
    display: flex;
    justify-content: space-between;       
    align-items: center;
    padding: 12px 16px;
    flex-shrink: 0;
}

.stream-content[b-t4ez1gfp27] {
    position: relative;
    flex: 1;
    display: flex;
}

.stream-content.with-chat[b-t4ez1gfp27] {
    display: flex;
}

.stream-video[b-t4ez1gfp27] {
    flex: 1;
    display: flex;
    /* Ensure a concrete minimum height so the player is visible at init */
    min-height: 360px;
    min-width: 0;
    position: relative;
}

.stream-embed-host[b-t4ez1gfp27] {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.stream-iframe[b-t4ez1gfp27] {
    width: 100%;
    height: 100%;
    border: none;
    aspect-ratio: 16/9; /* Maintain 16:9 aspect ratio for video */
    /* Avoid initial hidden states that break autoplay visibility checks */
    visibility: visible;
    opacity: 1;
}

.chat-iframe[b-t4ez1gfp27] {
    width: 100%;
    height: 100%;
    border: none;
}

.stream-chat[b-t4ez1gfp27] {
    width: 300px;
    display: flex;
    min-height: 0;
}

/* Card container styling */
.stream-container[b-t4ez1gfp27] {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Positioning context for the overlay controls */
    position: relative;
}

/* Per-card overlay controls (solo / pop-out / replace / remove).
   Top-left is the one spot clear of every player's *functional* controls
   (their control bars sit at the bottom; YouTube's buttons are top-right).
   Kept subtle at rest and brightened when pointed at. We can't hover-reveal
   over the video: a cross-origin iframe swallows the parent's :hover, so the
   controls must stay present to remain reachable. */
.card-controls[b-t4ez1gfp27] {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    gap: 2px;
    padding: 2px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 20;
    opacity: 0.4;
    transition: opacity 0.15s ease-in-out;
}

/* Pointing at the controls (a parent-document element above the iframe) does
   register hover, so they brighten on approach. */
.stream-container:hover .card-controls[b-t4ez1gfp27],
.card-controls:hover[b-t4ez1gfp27] {
    opacity: 1;
}

/* Drag-to-reorder handle */
.drag-handle[b-t4ez1gfp27] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: #fff;
    cursor: grab;
}

.drag-handle:active[b-t4ez1gfp27] {
    cursor: grabbing;
}

/* While a drag is in progress, make every player click-through so the cards
   (not the iframes) receive dragover/drop. */
.stream-container.dragging .stream-iframe[b-t4ez1gfp27],
.stream-container.dragging .stream-embed-host[b-t4ez1gfp27] {
    pointer-events: none;
}

/* The tile being dragged. */
.stream-container.drag-source[b-t4ez1gfp27] {
    opacity: 0.5;
}

/* Flip card: front = live embed, back = replace form */
.flip-card[b-t4ez1gfp27] {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    perspective: 1200px;
}

.flip-inner[b-t4ez1gfp27] {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner[b-t4ez1gfp27] {
    transform: rotateY(180deg);
}

.flip-front[b-t4ez1gfp27],
.flip-back[b-t4ez1gfp27] {
    position: absolute;
    inset: 0;
    display: flex;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-front[b-t4ez1gfp27] {
    flex-direction: column;
}

.flip-front .stream-content[b-t4ez1gfp27] {
    flex: 1;
    width: 100%;
    min-height: 0;
}

/* Don't let the hidden face capture clicks over the video */
.flip-back[b-t4ez1gfp27] {
    transform: rotateY(180deg);
    align-items: center;
    justify-content: center;
    background: var(--neutral-layer-2, #1b1b1f);
    pointer-events: none;
}

.flip-card.flipped .flip-back[b-t4ez1gfp27] {
    pointer-events: auto;
}

.flip-card.flipped .flip-front[b-t4ez1gfp27] {
    pointer-events: none;
}

.replace-form[b-t4ez1gfp27] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(90%, 360px);
    padding: 16px;
}

.replace-actions[b-t4ez1gfp27] {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
/* /Components/Shared/StreamsContainer.razor.rz.scp.css */
.streams-container[b-vsv5gkrlle] {
    padding: 1px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.grid-container[b-vsv5gkrlle] {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    justify-content: center;
}

.grid-container > .stack-item[b-vsv5gkrlle] {
    display: flex;
    transition: all 0.3s ease;
    flex: 1 1 auto;
    min-width: 320px;
    max-width: 100%;
}

.recent-launch[b-vsv5gkrlle] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 60vh;
    overflow-y: auto;
    padding: 24px 16px;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.main-layout[b-f6ufmyay3f] {
    height: 100vh;
}

.body-content[b-f6ufmyay3f] {
    height: 100vh;
    padding: 0;
}

.content[b-f6ufmyay3f] {
    height: 100vh;
}
