﻿/* ================================================================
   PORTAL SIGS - MODO TELÃO
   ================================================================ */

html,
body {
    margin: 0;
    min-height: 100%;
}

    body:has(.pt-page) {
        overflow: hidden;
        background: #020d14;
    }

.pt-page,
.pt-page * {
    box-sizing: border-box;
}

.pt-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: "Inter",sans-serif;
    color: #fff;
    background: #031723;
}


/* ================================================================
   FUNDO
   ================================================================ */

.pt-background {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(circle at 15% 10%,rgba(13,165,218,.22),transparent 31%), radial-gradient(circle at 88% 85%,rgba(28,187,154,.15),transparent 29%), linear-gradient(135deg,#020c13,#04283c 55%,#063852);
}

.pt-orb {
    position: absolute;
    border: 1px solid rgba(80,208,241,.10);
    border-radius: 50%;
}

.pt-orb-one {
    width: 720px;
    height: 720px;
    top: -480px;
    right: -200px;
}

.pt-orb-two {
    width: 510px;
    height: 510px;
    left: -300px;
    bottom: -290px;
}

.pt-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size: 72px 72px;
}


/* ================================================================
   CONFIGURAÇÃO
   ================================================================ */

.pt-setup {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.pt-setup-card {
    width: min(1080px,100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 29px;
    border: 1px solid rgba(119,207,235,.17);
    border-radius: 27px;
    background: rgba(5,34,50,.90);
    box-shadow: 0 45px 120px rgba(0,0,0,.46);
    backdrop-filter: blur(18px);
}

.pt-setup-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

    .pt-setup-brand img {
        width: 58px;
        height: 58px;
        padding: 4px;
        border-radius: 16px;
        background: #fff;
    }

    .pt-setup-brand span,
    .pt-setup-brand strong {
        display: block;
    }

    .pt-setup-brand span {
        margin-bottom: 3px;
        color: #62caeb;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .15em;
    }

    .pt-setup-brand strong {
        font-size: 20px;
    }

.pt-eyebrow {
    margin-bottom: 9px;
    color: #54caee;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

    .pt-eyebrow i {
        margin-right: 6px;
    }

.pt-setup-copy h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(31px,4vw,48px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.pt-setup-copy p {
    max-width: 760px;
    margin: 15px 0 0;
    color: #9eb8c6;
    font-size: 13px;
    line-height: 1.7;
}

.pt-config-section {
    margin-top: 28px;
}

.pt-config-title,
.pt-field label {
    display: block;
    margin-bottom: 8px;
    color: #d1e3eb;
    font-size: 11px;
    font-weight: 750;
}

.pt-mode-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}

.pt-mode {
    min-height: 91px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(112,173,201,.17);
    border-radius: 16px;
    color: #aec5d0;
    background: rgba(255,255,255,.035);
    text-align: left;
    cursor: pointer;
    transition: .18s;
}

    .pt-mode:hover {
        border-color: rgba(55,192,230,.35);
    }

    .pt-mode.active {
        border-color: #13a9da;
        color: #fff;
        background: rgba(14,157,208,.13);
        box-shadow: inset 0 0 0 1px rgba(16,180,225,.08);
    }

    .pt-mode > i {
        width: 43px;
        height: 43px;
        flex: 0 0 43px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        color: #34c2eb;
        background: rgba(22,174,216,.10);
        font-size: 17px;
    }

    .pt-mode span,
    .pt-mode strong,
    .pt-mode small {
        display: block;
    }

    .pt-mode strong {
        font-size: 13px;
    }

    .pt-mode small {
        margin-top: 4px;
        color: #7899aa;
        font-size: 9px;
        line-height: 1.4;
    }

.pt-config-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pt-col-2 {
    grid-column: 1/-1;
}

.pt-field input,
.pt-field select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid rgba(110,173,201,.18);
    border-radius: 12px;
    outline: 0;
    color: #e8f4f8;
    background: #092b3d;
    font-family: inherit;
    font-size: 12px;
}

    .pt-field input:focus,
    .pt-field select:focus {
        border-color: #21b7e2;
        box-shadow: 0 0 0 3px rgba(25,174,218,.08);
    }

    .pt-field select option {
        color: #fff;
        background: #092b3d;
    }


/* ================================================================
   OPÇÕES
   ================================================================ */

.pt-options {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 9px;
}

    .pt-options label {
        min-height: 69px;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 1px solid rgba(110,173,201,.15);
        border-radius: 14px;
        background: rgba(255,255,255,.025);
        cursor: pointer;
    }

    .pt-options input {
        display: none;
    }

.pt-check {
    position: relative;
    width: 41px;
    height: 23px;
    flex: 0 0 41px;
    border-radius: 20px;
    background: #314f5f;
    transition: .18s;
}

    .pt-check:before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        background: #fff;
        transition: .18s;
    }

.pt-options input:checked + .pt-check {
    background: #2fc79a;
}

    .pt-options input:checked + .pt-check:before {
        transform: translateX(18px);
    }

.pt-options strong,
.pt-options small {
    display: block;
}

.pt-options strong {
    color: #dceaf0;
    font-size: 10px;
}

.pt-options small {
    margin-top: 3px;
    color: #7695a5;
    font-size: 8px;
    line-height: 1.35;
}

.pt-setup-footer {
    margin-top: 22px;
    padding-top: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid rgba(117,179,204,.13);
}

.pt-back {
    color: #93abba;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

    .pt-back i {
        margin-right: 7px;
    }

.pt-start {
    min-height: 51px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg,#079dd4,#10b8df);
    box-shadow: 0 13px 30px rgba(4,153,204,.20);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

    .pt-start i {
        margin-right: 8px;
    }


/* ================================================================
   PLAYER
   ================================================================ */

.pt-player {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #020b11;
}


/* ================================================================
   TOPBAR
   ================================================================ */

.pt-topbar {
    position: absolute;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    height: 86px;
    padding: 13px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient( to bottom, rgba(1,11,17,.88), rgba(1,11,17,.30), transparent );
    pointer-events: none;
}

.pt-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

    .pt-brand img {
        width: 49px;
        height: 49px;
        padding: 3px;
        flex: 0 0 49px;
        border-radius: 14px;
        background: #fff;
    }

    .pt-brand span,
    .pt-brand strong {
        display: block;
    }

    .pt-brand span {
        margin-bottom: 3px;
        color: #67cdea;
        font-size: 7px;
        font-weight: 800;
        letter-spacing: .14em;
    }

    .pt-brand strong {
        overflow: hidden;
        max-width: 520px;
        font-size: 15px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.pt-top-status {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pt-live,
.pt-period-label,
.pt-clock {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    color: #bdd0d9;
    background: rgba(3,25,36,.58);
    backdrop-filter: blur(9px);
    font-size: 9px;
    font-weight: 700;
}

    .pt-live i {
        margin-right: 6px;
        color: #e8a84d;
        font-size: 6px;
    }

    .pt-live.online i {
        color: #38d39f;
        animation: pt-pulse 1.4s infinite;
    }

@keyframes pt-pulse {
    50% {
        opacity: .28
    }
}

.pt-clock {
    color: #fff;
    font-size: 13px;
}


/* ================================================================
   PALCO
   ================================================================ */

.pt-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%,#102b39,#01080c 70%);
}

.pt-watermark {
    position: absolute;
    z-index: 45;
    right: 24px;
    bottom: 94px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.36);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .15em;
    pointer-events: none;
}

.pt-slide {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

    .pt-slide.is-current {
        z-index: 3;
        opacity: 1;
    }

    .pt-slide.is-leaving {
        z-index: 2;
        opacity: 0;
        transition: opacity .85s ease;
    }

.pt-slide-bg {
    position: absolute;
    inset: -40px;
    background-position: center;
    background-size: cover;
    filter: blur(32px) brightness(.34) saturate(.92);
    transform: scale(1.10);
}

    .pt-slide-bg:after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center,transparent 25%,rgba(0,0,0,.37)), linear-gradient(to bottom,rgba(0,0,0,.14),rgba(0,0,0,.30));
    }

.pt-photo-shell {
    position: absolute;
    z-index: 2;
    top: 75px;
    right: 70px;
    bottom: 92px;
    left: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 20px 45px rgba(0,0,0,.35));
}

.pt-slide.is-current .pt-main-image {
    animation: pt-kenburns 12s ease-out both;
}

@keyframes pt-kenburns {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(1.025)
    }
}


/* ================================================================
   TRANSIÇÕES
   ================================================================ */

.pt-trans-fade {
    transition: opacity .90s ease;
}

    .pt-trans-fade.is-current {
        opacity: 1;
    }

.pt-trans-zoom {
    transform: scale(1.055);
    transition: opacity .90s ease, transform 1.05s cubic-bezier(.2,.75,.2,1);
}

    .pt-trans-zoom.is-current {
        opacity: 1;
        transform: scale(1);
    }

.pt-trans-slide {
    transform: translateX(8%);
    transition: opacity .85s ease, transform .95s cubic-bezier(.2,.8,.2,1);
}

    .pt-trans-slide.is-current {
        opacity: 1;
        transform: translateX(0);
    }

.pt-trans-reveal {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(.55,0,.15,1);
}

    .pt-trans-reveal.is-current {
        clip-path: inset(0 0 0 0);
    }


/* ================================================================
   LEGENDA
   ================================================================ */

.pt-caption {
    position: absolute;
    z-index: 8;
    right: 7%;
    bottom: 103px;
    left: 7%;
    max-width: 900px;
    padding: 18px 21px;
    border-left: 3px solid #24bee9;
    color: #fff;
    background: linear-gradient( 90deg, rgba(1,18,27,.80), rgba(1,18,27,.32), transparent );
    text-shadow: 0 2px 7px rgba(0,0,0,.45);
}

.pt-caption-date {
    display: block;
    margin-bottom: 4px;
    color: #7bd8f1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.pt-caption-text {
    display: block;
    max-width: 800px;
    font-size: clamp(17px,2vw,28px);
    line-height: 1.25;
}


/* ================================================================
   SEM FOTOS
   ================================================================ */

.pt-empty {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.pt-empty-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(72,201,238,.16);
    border-radius: 30px;
    color: #44c7ec;
    background: rgba(19,163,207,.08);
    font-size: 36px;
}

.pt-empty > span {
    color: #52c5e8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.pt-empty h2 {
    margin: 8px 0;
    font-size: 34px;
}

.pt-empty p {
    max-width: 600px;
    margin: 0;
    color: #88a5b3;
    font-size: 12px;
    line-height: 1.7;
}

.pt-empty-live {
    margin-top: 19px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    color: #88a9b8;
    font-size: 8px;
}

    .pt-empty-live i {
        margin-right: 5px;
        color: #39d1a0;
        font-size: 6px;
        animation: pt-pulse 1.4s infinite;
    }


/* ================================================================
   FILA
   ================================================================ */

.pt-queue {
    position: absolute;
    z-index: 50;
    top: 97px;
    right: 23px;
    min-height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(63,214,172,.23);
    border-radius: 11px;
    color: #79e6c5;
    background: rgba(2,38,41,.78);
    backdrop-filter: blur(8px);
    font-size: 9px;
    font-weight: 700;
}

    .pt-queue i {
        color: #f1be5d;
    }


/* ================================================================
   CONTROLES
   ================================================================ */

.pt-controls {
    position: absolute;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 24px 13px;
    background: linear-gradient( to top, rgba(0,6,10,.88), rgba(0,6,10,.24), transparent );
    transition: opacity .3s ease, transform .3s ease;
}

.pt-player.controls-hidden .pt-controls {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.pt-progress {
    height: 3px;
    margin-bottom: 9px;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(255,255,255,.13);
}

    .pt-progress span {
        width: 0;
        height: 100%;
        display: block;
        border-radius: 5px;
        background: linear-gradient(90deg,#12b8e3,#45d6aa);
    }

.pt-controls-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.pt-counter {
    color: #94acb8;
    font-size: 10px;
}

    .pt-counter span:first-child {
        color: #fff;
        font-size: 15px;
        font-weight: 800;
    }

.pt-control-center,
.pt-control-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pt-control-center {
    justify-content: center;
}

.pt-control-right {
    justify-content: flex-end;
}

.pt-controls button {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    color: #d4e3e9;
    background: rgba(8,37,51,.72);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

    .pt-controls button:hover {
        color: #fff;
        border-color: rgba(63,195,234,.33);
        background: rgba(9,101,139,.62);
    }

.pt-controls .pt-play {
    width: 51px;
    height: 51px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg,#079fd6,#12b9df);
}


/* ================================================================
   TOAST
   ================================================================ */

.pt-toast {
    position: absolute;
    z-index: 100;
    top: 105px;
    left: 50%;
    min-width: 310px;
    max-width: 480px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(65,209,172,.23);
    border-radius: 14px;
    color: #fff;
    background: rgba(4,39,50,.91);
    box-shadow: 0 17px 45px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translate(-50%,-20px);
    pointer-events: none;
    transition: .3s ease;
}

    .pt-toast.show {
        opacity: 1;
        transform: translate(-50%,0);
    }

    .pt-toast > i {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        flex: 0 0 38px;
        border-radius: 11px;
        color: #59ddba;
        background: rgba(54,202,160,.10);
    }

    .pt-toast strong,
    .pt-toast span {
        display: block;
    }

    .pt-toast strong {
        font-size: 11px;
    }

    .pt-toast span {
        margin-top: 2px;
        color: #8eabb9;
        font-size: 8px;
    }


/* ================================================================
   RESPONSIVO
   ================================================================ */

@media(max-width:850px) {

    .pt-setup {
        padding: 10px;
    }

    .pt-setup-card {
        padding: 20px;
        max-height: calc(100dvh - 20px);
    }

    .pt-mode-grid,
    .pt-options {
        grid-template-columns: 1fr;
    }

    .pt-config-grid {
        grid-template-columns: 1fr;
    }

    .pt-col-2 {
        grid-column: auto;
    }

    .pt-topbar {
        height: 75px;
        padding: 10px 13px;
    }

    .pt-brand span {
        display: none;
    }

    .pt-brand strong {
        max-width: 240px;
        font-size: 11px;
    }

    .pt-period-label {
        display: none;
    }

    .pt-photo-shell {
        top: 67px;
        right: 10px;
        bottom: 90px;
        left: 10px;
    }

    .pt-caption {
        right: 15px;
        bottom: 95px;
        left: 15px;
    }

    .pt-controls {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media(max-width:540px) {

    .pt-setup-copy h1 {
        font-size: 30px;
    }

    .pt-setup-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .pt-start {
        width: 100%;
    }

    .pt-back {
        text-align: center;
    }

    .pt-live span {
        display: none;
    }

    .pt-live {
        width: 34px;
        justify-content: center;
        padding: 0;
    }

        .pt-live i {
            margin: 0;
        }

    .pt-clock {
        font-size: 11px;
    }

    .pt-brand img {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .pt-controls-inner {
        grid-template-columns: auto 1fr auto;
    }

    .pt-control-center {
        gap: 3px;
    }

    .pt-controls button {
        width: 36px;
        height: 36px;
    }

    .pt-controls .pt-play {
        width: 44px;
        height: 44px;
    }

    .pt-watermark {
        display: none;
    }
}


/* ================================================================
   ACESSIBILIDADE
   ================================================================ */

@media(prefers-reduced-motion:reduce) {

    .pt-page *,
    .pt-page *:before,
    .pt-page *:after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
