:root {
    --lc-fundo: #f5f1e8;
    --lc-papel: #fffdf8;
    --lc-azul: #17324d;
    --lc-azul-claro: #284f70;
    --lc-cobre: #b56b3d;
    --lc-verde: #39735b;
    --lc-vermelho: #a84848;
    --lc-texto: #24313b;
    --lc-suave: #6d777f;
    --lc-borda: #ddd4c5;
}

/* Base */
body {
    background:
        radial-gradient(circle at top right, rgba(181,107,61,.08), transparent 30%),
        var(--lc-fundo) !important;
    color: var(--lc-texto);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-top: 24px !important;
}

.navbar,
.footer,
#togglesuspend,
#position {
    display: none !important;
}

.container {
    max-width: 980px;
}

/* Cabeçalho */
.pb-2.mt-4.mb-2.border-bottom {
    background: var(--lc-papel);
    border: 1px solid var(--lc-borda) !important;
    border-radius: 22px;
    padding: 28px 30px !important;
    box-shadow: 0 8px 24px rgba(23,50,77,.08);
}

h1 {
    color: var(--lc-azul);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 0;
}

h1::before {
    content: "☎";
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--lc-azul);
    color: #fff;
    font-size: 27px;
    vertical-align: middle;
    transform: rotate(-12deg);
}

h1 small {
    color: var(--lc-suave);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    margin-left: 72px;
}

/* Botão principal */
#start {
    float: right;
    border: 0;
    border-radius: 999px;
    padding: 11px 25px;
    margin-top: -50px !important;
    background: var(--lc-azul) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(23,50,77,.2);
}

#start:hover {
    background: var(--lc-azul-claro) !important;
}

/* Entrada do nome */
#audiojoin {
    background: var(--lc-papel);
    border: 1px solid var(--lc-borda);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(23,50,77,.06);
}

#username {
    min-height: 48px;
    border-color: var(--lc-borda);
}

#register {
    min-height: 48px;
    background: var(--lc-verde);
    border-color: var(--lc-verde);
    font-weight: 700;
    padding-left: 24px;
    padding-right: 24px;
}

/* Sala */
#room {
    margin-top: 24px !important;
}

.card {
    background: var(--lc-papel);
    border: 1px solid var(--lc-borda);
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(23,50,77,.07);
}

.card-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    background: var(--lc-azul) !important;
    color: #fff !important;
    border: 0;
    font-size: 18px;
    font-weight: 700;
}

.card-body {
    min-height: 100px;
}

#list .list-group-item {
    border: 0;
    border-bottom: 1px solid #eee7dc;
    padding: 14px 10px;
    background: transparent;
}

#list .list-group-item:last-child {
    border-bottom: 0;
}

/* Microfone */
#toggleaudio {
    border: 0 !important;
    border-radius: 999px;
    font-weight: 700;
    padding: 7px 16px;
}

#toggleaudio.btn-danger {
    background: var(--lc-vermelho) !important;
}

#toggleaudio.btn-success {
    background: var(--lc-verde) !important;
}

/* Áudio */
#mixedaudio audio {
    width: 100%;
    margin-top: 8px;
}

/* Badge do próprio usuário */
#you {
    background: var(--lc-cobre) !important;
    font-size: 14px;
}

/* Celular */
@media (max-width: 767px) {
    body {
        padding-top: 10px !important;
    }

    .pb-2.mt-4.mb-2.border-bottom {
        padding: 22px 20px !important;
    }

    h1 {
        font-size: 34px;
    }

    h1::before {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    h1 small {
        margin-left: 0;
        margin-top: 12px !important;
    }

    #start {
        float: none;
        display: block;
        width: 100%;
        margin-top: 20px !important;
    }

    #room .col-md-6 + .col-md-6 {
        margin-top: 16px;
    }
}


/* Informações da linha atual */
.lc-sala-info {
    margin-bottom: 18px;
    padding: 18px 22px;
    background: var(--lc-papel);
    border: 1px solid var(--lc-borda);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(23,50,77,.06);
}

.lc-sala-legenda {
    color: var(--lc-suave);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.lc-sala-nome {
    color: var(--lc-azul);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
}

.lc-sala-pessoas {
    margin-top: 5px;
    color: var(--lc-verde);
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .lc-sala-info {
        padding: 16px 18px;
    }

    .lc-sala-nome {
        font-size: 22px;
    }
}

/* Linha Cruzada - nome maior no celular V2 */
@media (max-width: 767px) {

    #registernow {
        display: block !important;
        width: 100% !important;
    }

    #registernow .input-group-text {
        display: none !important;
    }

    #username {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        min-height: 62px !important;
        font-size: 20px !important;
        padding: 14px 16px !important;
        margin: 0 0 12px 0 !important;
        border-radius: 12px !important;
    }

    #registernow .input-group-btn {
        display: block !important;
        width: 100% !important;
    }

    #register {
        display: block !important;
        width: 100% !important;
        min-height: 58px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
    }
}

/* Linha Cruzada - áudio ao vivo sem aparência de gravação */
#mixedaudio audio {
    display: none !important;
}

#mixedaudio::after {
    content: "🔊  Áudio da linha — conectado";
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 14px 18px;
    background: #f4f5f6;
    border-radius: 14px;
    color: var(--lc-azul);
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 767px) {
    #mixedaudio::after {
        min-height: 70px;
        font-size: 18px;
    }
}

/* Linha Cruzada - controle de volume */
#mixedaudio::after {
    content: none !important;
    display: none !important;
}

#mixedaudio audio {
    display: none !important;
}

#lc-volume-box {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 18px;
    background: #f4f5f6;
    border-radius: 14px;
}

.lc-volume-label {
    color: var(--lc-azul);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

#lc-volume {
    flex: 1;
    min-width: 100px;
    cursor: pointer;
}

#lc-volume-value {
    min-width: 46px;
    color: var(--lc-azul);
    font-weight: 700;
    text-align: right;
}

#lc-audio-mobile {
    display: none;
}

@media (max-width: 767px) {

    #lc-volume-box {
        display: none !important;
    }

    #lc-audio-mobile {
        display: flex;
        align-items: center;
        min-height: 70px;
        padding: 14px 18px;
        background: #f4f5f6;
        border-radius: 14px;
        color: var(--lc-azul);
        font-size: 18px;
        font-weight: 700;
    }
}

/* Linha Cruzada - cabeçalho Pessoas na linha no celular */
@media (max-width: 767px) {

    #room .col-md-6:first-child .card-header {
        flex-wrap: wrap;
        align-items: center;
        padding: 14px 16px;
    }

    #room .col-md-6:first-child .card-title {
        display: block;
        width: 100%;
        line-height: 1.5;
    }

    #participant {
        display: inline-block;
        margin-left: 6px;
        vertical-align: middle;
    }

    #room .col-md-6:first-child .top-right {
        position: static !important;
        float: none !important;
        display: flex;
        width: 100%;
        margin-top: 10px;
    }

    #toggleaudio {
        width: 100%;
        min-height: 48px;
    }
}
