/* ============================
   Base / Reset
============================ */
:root {
    --sl-primary-1: #7b2ff7;
    --sl-primary-2: #f107a3;
    --sl-text: #333;
    --sl-muted: #555;
    --sl-bg: #fff;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================
   Caixa de login isolada (se usar)
============================ */
.sl-login-box {
    background: #ffffff;
    padding: 30px;
    max-width: 400px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
    font-family: "Segoe UI", sans-serif;
}

.sl-login-box h2 {
    margin-bottom: 20px;
    color: var(--sl-text);
}

.sl-login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.sl-login-box button {
    background: #e91e63;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
}

.sl-login-box button:hover {
    background: #c2185b;
}

/* ============================
   Fundo / wrapper principal
============================ */
.bg-login-gif {
    background-image: url(https://www.salonline.com.br/file/v8177196313975509006/general/fundo_home-desktop.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    font-family: "Segoe UI", sans-serif;
    display: flex;
    align-items: center;
    padding: clamp(16px, 3vw, 40px) 16px;
}

@media (min-width:1024px) {
    .bg-login-gif {
        background-attachment: fixed;
    }
}

/* alias (caso alguma página use .bg-gif) */
.bg-gif {
    background-image: url(https://www.salonline.com.br/file/v8177196313975509006/general/fundo_home-desktop.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(16px, 3vw, 40px) 16px;
}

@media (min-width:1024px) {
    .bg-gif {
        background-attachment: fixed;
    }
}

/* ============================
   Cartão dividido (imagem + formulário)
============================ */
.sl-wrapper {
    display: flex;
    max-width: 1280px;
    width: min(1280px, 100%);
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    background: transparent;
}

/* -------- COLUNA ESQUERDA (somente a imagem, sem blur) -------- */
.sl-left {
    position: relative;
    flex: 1 1 25%;
    min-height: 420px;
    overflow: hidden;

    /* mostra apenas a arte original */
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}

/* mata qualquer camada antiga que aplicava blur/espelho */
.sl-left::before,
.sl-left::after {
    content: none !important;
    display: none !important;
}

/* (Opcional) se usar <img> dentro da .sl-left */
.sl-left-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (min-width:1280px) {
    .sl-left {
        min-height: 493px;
    }
}

@media (max-width:1100px) {
    .sl-left {
        min-height: 500px;
    }
}

@media (max-width:900px) {
    .sl-wrapper {
        flex-direction: column;
    }

    .sl-left {
        aspect-ratio: 5/5;
        /* mantém o poster inteiro no mobile */
        min-height: 0;
    }
}

/* -------- COLUNA DIREITA -------- */
.sl-right {
    flex: 1 1 48%;
    background: var(--sl-bg);
    padding: clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sl-right h1 {
    font-size: clamp(22px, 2.3vw, 28px);
    margin: 0;
    color: var(--sl-text);
    font-weight: bold;
}

.sl-right p {
    font-size: 16px;
    margin: 0 0 20px;
    color: var(--sl-muted);
    font-weight: 500;
}

.sl-right h2 {
    margin: 0 0 16px;
    color: var(--sl-text);
    font-size: 18px;
    font-weight: 300;
}

.sl-right input,
.sl-right textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

.sl-right input:focus,
.sl-right textarea:focus {
    outline: 2px solid rgba(123, 47, 247, .25);
    border-color: var(--sl-primary-1);
    box-shadow: 0 0 0 4px rgba(123, 47, 247, .08);
}

.sl-right button {
    background: linear-gradient(135deg, var(--sl-primary-1), var(--sl-primary-2));
    color: #fff;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform .03s ease, opacity .2s ease;
}

.sl-right button:hover {
    opacity: .95;
}

.sl-right button:active {
    transform: translateY(1px);
}

/* ============================
   Conteúdo pós-login (vídeo)
============================ */
#sl_conteudo iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    margin-top: 10px;
    border-radius: 12px;
    display: block;
}

/* ============================
   Responsivo extra
============================ */
@media (max-width:900px) {
    .sl-wrapper {
        flex-direction: column;
    }

    .sl-left {
        min-height: 320px;
        height: clamp(320px, 60vh, 520px);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* ============================
   PÓS-LOGIN: layout da live
============================ */
#sl_conteudo.sl-live-area {
    display: none;
    /* JS muda pra flex */
    background-image: url(https://www.salonline.com.br/file/v8177196313975509006/general/fundo_home-desktop.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    padding: clamp(16px, 3vw, 40px) 16px 48px;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
    align-items: center;
    align-content: center;
}

.sl-live-grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sl-live-main {
    display: grid;
    grid-template-rows: auto auto;
    gap: 16px;
}

/* Cartão do vídeo */
.sl-video-card {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: clamp(12px, 2vw, 20px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.sl-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
}

#sl_video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

/* Form de pergunta */
.sl-perguntas {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.sl-perguntas h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
}

.sl-perguntas textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    resize: vertical;
}

.sl-perguntas button {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    transition: opacity .2s ease, transform .03s ease;
}

.sl-perguntas button:hover {
    opacity: .95;
}

.sl-perguntas button:active {
    transform: translateY(1px);
}

#sl_msg_pergunta {
    font-size: 14px;
}

/* Feed à direita */
.sl-feed {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 24px;
    height: clamp(420px, calc(110vh - 120px), 770px);
}

.sl-feed h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
}

.sl-feed-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
    scrollbar-gutter: stable both-edges;
}

.sl-feed-list::-webkit-scrollbar {
    width: 10px;
}

.sl-feed-list::-webkit-scrollbar-track {
    background: transparent;
}

.sl-feed-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 10px;
}

.sl-feed-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .25);
}

.sl-feed-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px 14px;
}

.sl-feed-item .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b34d6;
    font-weight: 600;
    margin-bottom: 6px;
}

.sl-feed-item .meta .name {
    color: #333;
}

.sl-feed-item .meta .time {
    color: #777;
    font-weight: 500;
}

.sl-feed-item .meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ddd;
    display: inline-block;
}

.sl-feed-item .texto {
    font-size: 15px;
    color: #222;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width:992px) {
    .sl-live-grid {
        grid-template-columns: 1fr;
    }

    .sl-feed {
        position: static;
        height: auto;
    }

    .sl-feed-list {
        overflow: visible;
        max-height: none;
        scrollbar-gutter: auto;
    }
}

/* Título e descrição da live */
.sl-live-title {
    margin: 0 0 0;
    color: #333;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.25;
    font-weight: 500;
}

.sl-live-desc {
    margin-top: 14px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}


html {
    margin-top: 0 !important;
}

/* Iframe overlay (se usar) */
.sl-video-shield {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
}

.sl-video-btn {
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: 0;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    font-size: 24px;
    line-height: 68px;
}

.sl-video-shield.playing .sl-video-btn {
    opacity: 0;
    pointer-events: none;
}

.sl-video-topshield {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(44px, 7vw, 64px);
    z-index: 5;
    pointer-events: auto;
    background: transparent;
}

.sl-video-wrap {
    position: relative;
}

.adm-reply {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f6efff;
    border: 1px solid #eadbff;
    border-radius: 12px;
}

.adm-reply-title {
    font-size: 12px;
    color: #6b34d6;
    margin-bottom: 6px;
    font-weight: 700;
}

.adm-reply-title .badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #7b2ff7;
    color: #fff;
    margin-left: 6px;
}

.adm-reply-text {
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

/* composer do admin */
.sl-admin-ans {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.sl-admin-ans textarea {
    flex: 1;
    min-height: 48px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #ded6f7;
    border-radius: 10px;
    font-size: 14px;
}

.sl-admin-ans textarea:focus {
    outline: 2px solid rgba(123, 47, 247, .2);
    border-color: #7b2ff7;
    box-shadow: 0 0 0 4px rgba(123, 47, 247, .06);
}

.sl-admin-ans button {
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
}

/* Preenche a viewport no modo tela cheia (todas as engines) */
#sl_video:fullscreen,
.sl-video-wrap:fullscreen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
}

#sl_video:-webkit-full-screen,
.sl-video-wrap:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

#sl_video:-moz-full-screen,
.sl-video-wrap:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

#sl_video:-ms-fullscreen,
.sl-video-wrap:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

/* Evita overlays por cima do player em fullscreen */
:fullscreen .sl-tip,
:fullscreen .sl-click-shield {
    display: none !important;
}

@media (max-width: 600px) {
  .sl-player-ctrls button {
    font-size: 0; /* esconde o texto */
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sl-player-ctrls button::before {
    font-size: 22px;
    line-height: 1;
  }

  /* Ícones individuais (usa emojis dos próprios botões) */
  #sl_btn_play::before { content: "▶"; }
  #sl_btn_pause::before { content: "⏸"; }
  #sl_btn_mute::before { content: "🔇"; }
  #sl_btn_unmute::before { content: "🔊"; }
  #sl_btn_fs::before { content: "⛶"; }
}

.sl-video-wrap:fullscreen,
.sl-video-wrap:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  border-radius: 0 !important;
}

/* Iframe preenchendo o wrapper em fullscreen */
.sl-video-wrap:fullscreen iframe,
.sl-video-wrap:-webkit-full-screen iframe {
  width: 100% !important;
  height: 100% !important;
}