/* =========================================================
   CS IPTV - PEDIDOS
   Layout público
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary: #03a2fe;

    --bg: #07111f;
    --bg-secondary: #0b1e35;
    --card: #11233d;

    --text: #ffffff;
    --text-secondary: #8fa0b7;
    --text-muted: #71839b;

    --border: rgba(255, 255, 255, 0.07);
}

body {
    width: 100%;
    min-height: 100%;

    overflow-x: hidden;

    font-family:
        "Helvetica Neue",
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.5;
}


/* =========================================================
   HEADER
========================================================= */

.public-header {
    width: 100%;
    min-height: 68px;

    display: flex;
    align-items: center;

    background: var(--bg-secondary);

    border-bottom: 1px solid var(--border);
}

.public-nav {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.public-brand {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;

    color: #fff;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    letter-spacing: 0.5px;
}

.public-brand-mark {
    flex-shrink: 0;

    color: var(--primary);

    font-size: 20px;
}

.public-links {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 8px;
}

.public-links a {
    padding: 7px 12px;

    border-radius: 6px;

    color: #9eacc0;

    text-decoration: none;

    font-size: 13px;

    transition:
        background 0.2s,
        color 0.2s;
}

.public-links a:hover,
.public-links a.active {
    color: #fff;

    background: rgba(3, 162, 254, 0.12);
}


/* =========================================================
   CONTAINER
========================================================= */

.public-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 32px 24px 50px;
}


/* =========================================================
   HERO
========================================================= */

.public-hero {
    width: 100%;

    padding: 48px 20px 42px;

    text-align: center;
}

.public-hero h1 {
    max-width: 700px;

    margin: 0 auto 10px;

    color: #fff;

    font-size: 34px;
    line-height: 1.2;
}

.public-hero p {
    max-width: 600px;

    margin: 0 auto;

    color: var(--text-secondary);

    font-size: 14px;
}


/* =========================================================
   PAINÉIS
========================================================= */

.public-panel {
    width: 100%;
    min-width: 0;

    margin-bottom: 24px;

    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 10px;
}

.public-panel-header {
    min-height: 68px;

    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom: 1px solid var(--border);
}

.public-panel-header > div {
    min-width: 0;
}

.public-panel-header h2 {
    margin: 0;

    color: #fff;

    font-size: 15px;
    font-weight: 600;
}

.public-panel-header p {
    margin-top: 3px;

    color: #7f90a8;

    font-size: 11px;
}

.public-panel-body {
    width: 100%;
    min-width: 0;

    padding: 20px;
}

.public-count {
    flex-shrink: 0;

    padding: 5px 9px;

    border-radius: 5px;

    background: var(--bg);

    color: #8293aa;

    font-size: 11px;
}


/* =========================================================
   BUSCA
========================================================= */

.public-search-form {
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        auto;

    gap: 12px;

    align-items: end;
}

.public-field {
    min-width: 0;
}

.public-field label {
    display: block;

    margin-bottom: 6px;

    color: #9dacbf;

    font-size: 11px;
    font-weight: 500;
}

.public-field input,
.public-field select {
    display: block;

    width: 100%;
    height: 40px;

    padding: 0 12px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;

    outline: none;

    background: var(--bg);

    color: #fff;

    font-family: inherit;
    font-size: 13px;
}

.public-field input:focus,
.public-field select:focus {
    border-color: var(--primary);
}

.public-field input::placeholder {
    color: #52637a;
}

.public-search-button {
    min-width: 0;
}

.public-search-button button {
    height: 40px;

    padding: 0 22px;

    border: 0;
    border-radius: 6px;

    background: var(--primary);

    color: #fff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s;
}

.public-search-button button:hover {
    background: #0287d3;
}


/* =========================================================
   GRID DE FILMES / SÉRIES
========================================================= */

.public-movie-grid {
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.public-movie-card {
    width: 100%;
    min-width: 0;

    overflow: hidden;

    background: var(--bg-secondary);

    border: 1px solid var(--border);
    border-radius: 8px;

    transition:
        transform 0.2s,
        border-color 0.2s;
}

.public-movie-card:hover {
    transform: translateY(-3px);

    border-color: rgba(3, 162, 254, 0.45);
}


/* POSTER */

.public-poster-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 2 / 3;

    overflow: hidden;

    background: var(--bg);
}

.public-movie-poster {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.public-type-badge {
    position: absolute;

    left: 8px;
    bottom: 8px;

    padding: 4px 7px;

    border-radius: 4px;

    background: rgba(7, 17, 31, 0.9);

    color: #fff;

    font-size: 10px;
    font-weight: 600;
}


/* INFORMAÇÕES */

.public-movie-info {
    min-width: 0;

    padding: 11px 12px 12px;
}

.public-movie-title {
    width: 100%;

    overflow: hidden;

    color: #fff;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.public-movie-meta {
    width: 100%;

    margin-top: 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   STATUS
========================================================= */

.public-status {
    flex-shrink: 0;

    padding: 3px 6px;

    border-radius: 10px;

    font-size: 9px;
    font-weight: 600;
}

.public-status-pendente {
    color: #ffc107;

    background: rgba(255, 193, 7, 0.12);
}

.public-status-aprovado {
    color: #41c76f;

    background: rgba(40, 167, 69, 0.12);
}

.public-status-rejeitado {
    color: #ff6675;

    background: rgba(220, 53, 69, 0.12);
}


/* =========================================================
   ESTADO VAZIO
========================================================= */

.public-empty {
    padding: 35px;

    text-align: center;

    color: var(--text-muted);

    font-size: 13px;
}


/* =========================================================
   FOOTER
========================================================= */

.public-footer {
    width: 100%;

    padding: 25px 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #60728a;

    font-size: 11px;

    text-align: center;
}

.public-status-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #28a745;
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 900px) {

    .public-movie-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   CELULAR
========================================================= */

@media screen and (max-width: 600px) {

    .public-header {
        min-height: 58px;
    }

    .public-nav {
        padding: 0 14px;

        gap: 10px;
    }

    .public-brand {
        font-size: 14px;
    }

    .public-brand-mark {
        font-size: 17px;
    }

    .public-links {
        gap: 2px;
    }

    .public-links a {
        padding: 7px 8px;

        font-size: 11px;
    }


    /* CONTEÚDO */

    .public-container {
        padding:
            15px
            10px
            30px;
    }


    /* HERO */

    .public-hero {
        padding: 30px 10px;
    }

    .public-hero h1 {
        font-size: 24px;
    }

    .public-hero p {
        max-width: 320px;

        font-size: 12px;
    }


    /* PAINÉIS */

    .public-panel {
        border-radius: 8px;
    }

    .public-panel-header {
        min-height: 60px;

        padding: 12px 14px;
    }

    .public-panel-header h2 {
        font-size: 14px;
    }

    .public-panel-header p {
        font-size: 10px;
    }

    .public-panel-body {
        padding: 12px;
    }

    .public-count {
        padding: 4px 7px;

        font-size: 9px;
    }


    /* BUSCA */

    .public-search-form {
        display: grid;

        grid-template-columns: minmax(0, 1fr);

        gap: 10px;
    }

    .public-field input,
    .public-field select {
        height: 44px;

        font-size: 16px;
    }

    .public-search-button {
        width: 100%;
    }

    .public-search-button button {
        width: 100%;
        height: 44px;

        font-size: 13px;
    }


    /* 2 CARDS POR LINHA */

    .public-movie-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .public-movie-info {
        padding: 9px;
    }

    .public-movie-title {
        font-size: 11px;
    }

    .public-movie-meta {
        gap: 4px;

        font-size: 9px;
    }

    .public-status {
        padding: 2px 5px;

        font-size: 8px;
    }

    .public-type-badge {
        left: 6px;
        bottom: 6px;

        padding: 3px 6px;

        font-size: 9px;
    }

}


/* =========================================================
   CELULARES MUITO PEQUENOS
========================================================= */

@media screen and (max-width: 360px) {

    .public-nav {
        padding: 0 10px;
    }

    .public-brand {
        font-size: 12px;
    }

    .public-links a {
        padding: 6px;

        font-size: 10px;
    }

    .public-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .public-panel-body {
        padding: 9px;
    }

    .public-movie-grid {
        gap: 7px;
    }

}


/* =========================================================
   PÁGINA DE PESQUISA
========================================================= */

.public-hero-search {
    padding-bottom: 32px;
}


/* META DOS RESULTADOS */

.public-search-card-meta {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 10px;
}


/* BOTÃO SOLICITAR */

.public-request-button {
    width: 100%;
    height: 36px;

    margin-top: 11px;

    border: 0;
    border-radius: 6px;

    background: var(--primary);

    color: #fff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s;
}

.public-request-button:hover {
    background: #0287d3;
}


/* =========================================================
   FORMULÁRIO DA SOLICITAÇÃO
========================================================= */

.public-request-panel {
    scroll-margin-top: 20px;
}

.public-request-panel .public-field {
    max-width: 500px;
}

.public-request-actions {
    margin-top: 16px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.public-request-submit,
.public-request-cancel {
    height: 38px;

    padding: 0 18px;

    border: 0;
    border-radius: 6px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.public-request-submit {
    background: var(--primary);

    color: #fff;
}

.public-request-submit:hover {
    background: #0287d3;
}

.public-request-cancel {
    background: var(--bg);

    color: #9dacbf;

    border: 1px solid var(--border);
}

.public-request-cancel:hover {
    color: #fff;

    border-color: rgba(255,255,255,.18);
}


/* =========================================================
   PAGINAÇÃO
========================================================= */

.public-pagination {
    margin-top: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 5px;
}

.public-pagination a {
    min-width: 34px;
    height: 34px;

    padding: 0 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: var(--bg);

    color: #8fa0b7;

    text-decoration: none;

    font-size: 11px;

    transition: 0.2s;
}

.public-pagination a:hover {
    color: #fff;

    border-color: var(--primary);
}

.public-pagination a.active {
    background: var(--primary);

    border-color: var(--primary);

    color: #fff;
}


/* =========================================================
   MENSAGENS
========================================================= */

.public-message {
    width: 100%;

    margin-bottom: 24px;

    padding: 13px 15px;

    border-radius: 7px;

    font-size: 12px;
}

.public-message-error {
    color: #ff8792;

    background: rgba(220, 53, 69, 0.10);

    border: 1px solid rgba(220, 53, 69, 0.22);
}


/* MOBILE */

@media screen and (max-width: 600px) {

    .public-hero-search {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .public-request-button {
        height: 38px;
    }

    .public-request-panel .public-field {
        max-width: 100%;
    }

    .public-request-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;

        width: 100%;
    }

    .public-request-submit,
    .public-request-cancel {
        width: 100%;

        padding: 0 8px;
    }

}


/* =========================================================
   RESULTADO DA SOLICITAÇÃO
========================================================= */

.public-request-result {
    width: 100%;
    max-width: 520px;

    margin: 80px auto;

    padding: 40px 30px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 10px;
}

.public-result-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 22px;
    font-weight: 700;
}

.public-result-icon.success {
    color: #41c76f;

    background: rgba(40, 167, 69, 0.12);

    border: 1px solid rgba(40, 167, 69, 0.25);
}

.public-result-icon.error {
    color: #ff6675;

    background: rgba(220, 53, 69, 0.12);

    border: 1px solid rgba(220, 53, 69, 0.25);
}

.public-result-icon.info {
    color: var(--primary);

    background: rgba(3, 162, 254, 0.10);

    border: 1px solid rgba(3, 162, 254, 0.25);
}

.public-request-result h1 {
    margin-bottom: 9px;

    color: #fff;

    font-size: 22px;
}

.public-request-result > p {
    color: #899ab0;

    font-size: 12px;
}

.public-result-status {
    display: inline-flex;

    margin-top: 18px;

    padding: 5px 9px;

    border-radius: 12px;

    font-size: 10px;
    font-weight: 600;
}

.public-result-status.success {
    color: #41c76f;

    background: rgba(40, 167, 69, 0.10);
}

.public-result-status.error {
    color: #ff6675;

    background: rgba(220, 53, 69, 0.10);
}

.public-request-result .public-redirect {
    margin-top: 22px;

    color: #60728a;

    font-size: 10px;
}

.public-result-button {
    min-height: 38px;

    margin-top: 17px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: var(--primary);

    color: #fff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 600;
}

.public-result-button:hover {
    background: #0287d3;
}


/* MOBILE */

@media screen and (max-width: 600px) {

    .public-request-result {
        margin: 35px auto;

        padding: 32px 20px;
    }

    .public-request-result h1 {
        font-size: 19px;
    }

    .public-result-button {
        width: 100%;

        min-height: 44px;
    }

}