/* DA alignée sur SocialMenu.css — Orion NUI */

:root {
    --orion-bg: #0d0e10;
    --orion-bg-sidebar: #0b0c0d;
    --orion-bg-content: rgb(19, 21, 23);
    --orion-border: rgba(255, 255, 255, 0.08);
    --orion-border-strong: rgba(255, 255, 255, 0.12);
    --orion-text: rgba(235, 238, 242, 0.92);
    --orion-muted: rgba(86, 94, 102, 0.95);
    --orion-accent: #6ed4ff;
    --orion-accent-bar: #2ea8ff;
    --orion-nav-active-bg: rgba(35, 48, 62, 0.75);
    --orion-panel-inner: rgba(12, 14, 18, 0.35);
    --orion-link: #93a7d2;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI Semibold', 'Segoe UI', system-ui, sans-serif;
    background: var(--orion-bg);
    color: var(--orion-text);
    line-height: 1.5;
}

.orion-accent-text {
    color: var(--orion-accent);
}

.orion-muted {
    color: var(--orion-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

.orion-link {
    color: var(--orion-accent);
    text-decoration: none;
}

.orion-link:hover {
    text-decoration: underline;
}

.orion-code {
    font-size: 11px;
    color: rgba(150, 160, 175, 0.9);
}

.orion-topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--orion-bg-sidebar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.orion-topnav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.orion-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orion-brand-mark {
    width: 10px;
    height: 28px;
    background: linear-gradient(180deg, var(--orion-accent-bar), var(--orion-accent));
    border-radius: 1px;
}

.orion-brand-text {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.orion-brand-muted {
    color: rgba(235, 238, 242, 0.45);
    font-weight: 700;
}

.orion-nav {
    display: flex;
    gap: 0;
}

.orion-nav-btn {
    position: relative;
    border: none;
    background: transparent;
    color: rgba(235, 238, 242, 0.72);
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    padding: 12px 18px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.orion-nav-btn:hover {
    color: rgba(255, 255, 255, 0.92);
}

.orion-nav-btn.active {
    color: var(--orion-accent);
    background: var(--orion-nav-active-bg);
}

.orion-nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--orion-accent-bar);
    pointer-events: none;
}

.orion-main {
    min-height: calc(100vh - 120px);
}

.orion-section {
    display: none;
    padding: 28px 16px 48px;
}

.orion-section.active {
    display: block;
    animation: orion-fade 200ms ease-out;
}

@keyframes orion-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.orion-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.orion-panel {
    border: 1px solid var(--orion-border);
    background: var(--orion-panel-inner);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.orion-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.orion-eyebrow {
    margin: 0;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: var(--orion-accent);
}

.orion-panel-sub {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--orion-muted);
    font-family: 'Segoe UI', sans-serif;
}

.orion-hero-title {
    margin: 8px 0 10px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.orion-hero-sub {
    margin: 0 0 18px;
    color: var(--orion-muted);
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}

.orion-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.orion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--orion-border-strong);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.orion-btn-primary {
    background: var(--orion-nav-active-bg);
    color: var(--orion-accent);
    border-color: rgba(110, 212, 255, 0.4);
}

.orion-btn-primary:hover {
    background: rgba(46, 168, 255, 0.18);
    color: #8fe2ff;
}

.orion-btn-ghost {
    background: rgba(12, 14, 18, 0.85);
    color: rgba(235, 238, 242, 0.95);
}

.orion-btn-ghost:hover {
    color: var(--orion-accent);
    border-color: rgba(110, 212, 255, 0.45);
    background: rgba(35, 48, 62, 0.65);
}

.orion-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.orion-card-title {
    margin: 6px 0 12px;
    font-size: 18px;
    font-weight: 800;
}

.orion-kv {
    list-style: none;
    margin: 0;
    padding: 0;
}

.orion-kv li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.orion-kv li:last-child {
    border-bottom: none;
}

.orion-kv span {
    color: var(--orion-muted);
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}

.orion-kv strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.orion-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3ae374;
    box-shadow: 0 0 10px rgba(58, 227, 116, 0.75);
    margin-right: 6px;
    vertical-align: middle;
}

.orion-hint {
    margin: 14px 0 0;
    font-size: 11px;
    color: rgba(150, 160, 175, 0.85);
    font-family: 'Segoe UI', sans-serif;
}

.orion-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.orion-tiktok-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px;
    gap: 12px;
}

.orion-tiktok-loading[hidden] {
    display: none !important;
}

.orion-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(110, 212, 255, 0.2);
    border-top-color: var(--orion-accent-bar);
    border-radius: 50%;
    animation: orion-spin 0.9s linear infinite;
}

@keyframes orion-spin {
    to {
        transform: rotate(360deg);
    }
}

.orion-tiktok-error {
    text-align: center;
    padding: 24px;
    border: 1px solid rgba(255, 100, 100, 0.25);
    background: rgba(60, 20, 20, 0.25);
}

.orion-tiktok-error[hidden] {
    display: none !important;
}

.orion-tiktok-host {
    min-height: 420px;
}

.orion-tiktok-host iframe {
    max-width: 100%;
    border: none;
    border-radius: 4px;
}

.orion-tiktok-host .tiktok-embed {
    margin: 0 auto !important;
}

.orion-streamers-intro .orion-page-title {
    margin: 6px 0 10px;
    font-size: 1.75rem;
    font-weight: 800;
}

.orion-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.orion-stat {
    border: 1px solid var(--orion-border);
    background: rgba(12, 14, 18, 0.55);
    padding: 14px 16px;
    text-align: center;
}

.orion-stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--orion-accent);
    font-variant-numeric: tabular-nums;
}

.orion-stat-label {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: var(--orion-muted);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 12px;
}

.loading-container[hidden],
.loading-container.hidden {
    display: none !important;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(110, 212, 255, 0.2);
    border-top-color: var(--orion-accent-bar);
    border-radius: 50%;
    animation: orion-spin 0.9s linear infinite;
}

.loading-container p {
    color: var(--orion-muted);
    font-size: 13px;
}

.error-message {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(255, 80, 80, 0.35);
    background: rgba(60, 20, 20, 0.35);
    color: #ffb4b4;
    margin-bottom: 16px;
    text-align: center;
}

.no-streamers {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px;
    border: 1px dashed var(--orion-border);
    background: rgba(12, 14, 18, 0.35);
    margin-bottom: 16px;
    text-align: center;
}

.no-streamers p {
    margin: 0 0 8px;
    color: #8ea2ce;
}

.no-streamers-subtitle {
    font-size: 12px !important;
    opacity: 0.85;
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.streamer-card {
    border: 1px solid var(--orion-border);
    background: rgba(19, 21, 23, 0.85);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.streamer-card:hover {
    border-color: rgba(110, 212, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(46, 168, 255, 0.15);
}

.stream-preview {
    position: relative;
    height: 180px;
    background: #080a0e;
}

.stream-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-indicator-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c0392b;
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.streamer-avatar-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.streamer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer-card > .streamer-name {
    padding: 14px 16px 4px;
}

.streamer-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.96);
}

.streamer-description {
    margin: 0;
    padding: 6px 16px 12px;
    font-size: 12px;
    color: var(--orion-accent);
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}

.streamer-meta {
    padding: 0 16px 12px;
    display: flex;
    gap: 10px;
}

.viewer-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--orion-muted);
    border: 1px solid var(--orion-border);
    padding: 6px 10px;
    border-radius: 4px;
}

.streamer-links {
    padding: 0 16px 16px;
}

.streamer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid rgba(110, 212, 255, 0.4);
    background: var(--orion-nav-active-bg);
    color: var(--orion-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.streamer-link:hover {
    background: rgba(46, 168, 255, 0.18);
    color: #8fe2ff;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(35, 48, 62, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orion-accent);
}

.orion-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(111, 130, 173, 0.9);
    background: var(--orion-bg-sidebar);
}

.orion-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.orion-modal.is-open {
    display: flex;
}

.orion-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

.orion-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: min(82vh, 560px);
    display: flex;
    flex-direction: column;
    background: #0d0e10;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    animation: orion-fade 180ms ease-out;
}

.orion-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b0c0d;
    flex-shrink: 0;
}

.orion-modal-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: var(--orion-accent);
}

.orion-modal-close {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.orion-modal-close:hover {
    color: #fff;
}

.orion-modal-body {
    padding: 14px 16px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(78, 168, 235, 0.55) rgba(20, 22, 28, 0.85);
}

.orion-players-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.orion-players-list li {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(12, 14, 18, 0.65);
    font-size: 13px;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.95);
}

.orion-players-list li span.meta {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--orion-muted);
}

@media (max-width: 520px) {
    .orion-topnav-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .orion-nav {
        width: 100%;
        justify-content: stretch;
    }

    .orion-nav-btn {
        flex: 1;
        text-align: center;
    }
}
