/**
 * Coup de Projecteur — accueil (dock fixe) + dashboard (inline)
 */

/* ——— Inline (dashboard) ——— */
.spotlight-block {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0;
}

.spotlight-block-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.spotlight-block-title i {
    color: var(--fs-accent, #f97316);
}

.spotlight-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(15, 15, 18, 0.85));
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.spotlight-featured-card:hover {
    border-color: rgba(249, 115, 22, 0.65);
    transform: translateY(-2px);
}

.spotlight-thumb {
    position: relative;
    min-height: 220px;
    background: #0a0a0c;
    aspect-ratio: 16 / 9;
}

.spotlight-thumb img,
.spotlight-thumb iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.spotlight-thumb iframe {
    position: absolute;
    inset: 0;
}

.spotlight-thumb-fallback {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.35);
    font-size: 2.5rem;
}

/* Plus spécifique que `.spotlight-thumb img` pour ne pas étirer l’avatar */
.spotlight-thumb img.spotlight-thumb-avatar {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(249, 115, 22, 0.55);
}

.spotlight-live-pill {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.spotlight-body {
    padding: 1.25rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: center;
}

.spotlight-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fb923c;
    font-weight: 600;
}

.spotlight-name {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
}

.spotlight-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

.spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.spotlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
}

.spotlight-btn.primary {
    background: #f97316;
    border-color: #f97316;
    color: #111;
}

.spotlight-rotation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.spotlight-rot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    background: rgba(15, 15, 18, 0.65);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.spotlight-rot-card:hover {
    border-color: rgba(249, 115, 22, 0.7);
    transform: translateY(-2px);
}

.spotlight-rot-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.spotlight-rot-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    font-weight: 700;
    font-size: 1.1rem;
}

.spotlight-rot-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}

.spotlight-rot-live {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ef4444;
}

.spotlight-mini-badge {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 5;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(249, 115, 22, 0.95);
    color: #111;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
}

.spotlight-empty-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.15rem 1rem 1.25rem;
    border-radius: 16px;
    border: 1px dashed rgba(249, 115, 22, 0.45);
    background: linear-gradient(160deg, rgba(249, 115, 22, 0.1), rgba(15, 15, 18, 0.75));
}

.spotlight-empty-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.18);
    color: #fb923c;
    font-size: 1.1rem;
}

.spotlight-empty-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.4;
    max-width: 18rem;
}

.fs-hub-page .spotlight-block {
    margin-bottom: 1.5rem;
}

.fs-hub-page .spotlight-thumb {
    min-height: 180px;
}

/* ——— Dock fixe (login / accueil public) ——— */
.spotlight-dock {
    --spotlight-dock-w: 340px;
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    z-index: 90;
    width: var(--spotlight-dock-w);
    max-height: calc(100vh - 6.5rem);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.spotlight-dock > * {
    pointer-events: auto;
}

.spotlight-dock-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: rgba(12, 12, 14, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.spotlight-dock .spotlight-block {
    margin: 0;
    max-width: none;
}

.spotlight-dock .spotlight-block-title {
    justify-content: flex-start;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.spotlight-dock .spotlight-featured-card {
    grid-template-columns: 1fr;
    gap: 0;
    transform: none;
}

.spotlight-dock .spotlight-featured-card:hover {
    transform: none;
}

.spotlight-dock .spotlight-thumb {
    min-height: 0;
    aspect-ratio: 16 / 9;
}

.spotlight-dock .spotlight-thumb-fallback {
    min-height: 120px;
}

.spotlight-dock .spotlight-thumb img.spotlight-thumb-avatar {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
}

.spotlight-dock .spotlight-body {
    padding: 0.85rem 0.9rem 1rem;
    gap: 0.45rem;
}

.spotlight-dock .spotlight-name {
    font-size: 1.15rem;
}

.spotlight-dock .spotlight-meta {
    font-size: 0.82rem;
}

.spotlight-dock .spotlight-rotation {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.spotlight-dock .spotlight-rot-card {
    padding: 0.55rem 0.4rem;
}

.spotlight-dock .spotlight-rot-avatar,
.spotlight-dock .spotlight-rot-avatar-fallback {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
}

.spotlight-dock .spotlight-rot-name {
    font-size: 0.75rem;
}

.spotlight-dock-toggle {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.55);
    background: rgba(249, 115, 22, 0.92);
    color: #111;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.spotlight-dock-toggle img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.spotlight-dock-toggle .spotlight-dock-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

.spotlight-dock.is-collapsed .spotlight-dock-panel {
    display: none;
}

.spotlight-dock.is-collapsed .spotlight-dock-toggle {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 0.85rem 0.55rem;
    border-radius: 14px;
    flex-direction: column;
}

.spotlight-dock.is-collapsed .spotlight-dock-toggle img {
    width: 36px;
    height: 36px;
}

@media (max-width: 900px) {
    .spotlight-dock {
        --spotlight-dock-w: min(320px, calc(100vw - 1.25rem));
        right: 0.6rem;
        left: auto;
        top: auto;
        bottom: 0.85rem;
        max-height: min(70vh, 520px);
    }

    .spotlight-dock-panel {
        max-height: min(62vh, 460px);
    }

    .spotlight-dock.is-collapsed {
        top: auto;
        bottom: 0.85rem;
    }

    .spotlight-dock.is-collapsed .spotlight-dock-toggle {
        writing-mode: horizontal-tb;
        flex-direction: row;
        padding: 0.5rem 0.75rem;
        border-radius: 999px;
    }
}

@media (max-width: 768px) {
    .spotlight-featured-card {
        grid-template-columns: 1fr;
    }

    .spotlight-thumb {
        min-height: 180px;
    }
}
