﻿.catalog-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 38px 35px 60px;
}


/* =========================================================
   HEADER
   ========================================================= */

.catalog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}


.catalog-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #ff4868;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}


.catalog-title-area h1 {
    margin: 0;
    color: #ffffff;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -0.8px;
}


.catalog-title-area p {
    margin: 8px 0 0;
    color: #737985;
    font-size: 12px;
}


/* =========================================================
   NOVO FILME
   ========================================================= */

.new-movie-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: none;
    border-radius: 10px;
    background: linear-gradient( 135deg, #ff3158, #ff506a );
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 9px 24px rgba(255, 49, 88, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


    .new-movie-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 13px 30px rgba(255, 49, 88, 0.30);
    }


/* =========================================================
   RESUMO
   ========================================================= */

.catalog-summary {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}


.summary-item {
    display: flex;
    align-items: center;
    gap: 11px;
}


.summary-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ff4a68;
    background: rgba(255, 49, 88, 0.10);
}


.summary-item > div:last-child {
    display: flex;
    flex-direction: column;
}


.summary-item span {
    color: #646a75;
    font-size: 9px;
}


.summary-item strong {
    margin-top: 2px;
    color: #daddE4;
    font-size: 12px;
    font-weight: 650;
}


.summary-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.06);
}


/* =========================================================
   LISTA
   ========================================================= */

.movies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================================================
   CARD
   ========================================================= */

.movie-admin-card {
    min-height: 126px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 14px;
    background: linear-gradient( 90deg, #12151b, #0f1116 );
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}


    .movie-admin-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.10);
        background: linear-gradient( 90deg, #151820, #101218 );
    }


/* =========================================================
   CAPA
   ========================================================= */

.movie-cover {
    width: 90px;
    min-width: 90px;
    height: 126px;
    overflow: hidden;
    background: #090a0d;
}


    .movie-cover img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }


.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333844;
    background: linear-gradient( 135deg, #171a21, #0c0e12 );
}


    .cover-placeholder i {
        font-size: 28px;
    }


/* =========================================================
   CONTEÚDO
   ========================================================= */

.movie-admin-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 18px 20px;
}


.movie-admin-main {
    min-width: 0;
    flex: 1;
}


.movie-id {
    margin-bottom: 4px;
    color: #494f5b;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.movie-admin-main h2 {
    margin: 0;
    overflow: hidden;
    color: #eceef2;
    font-size: 15px;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.movie-admin-main p {
    max-width: 750px;
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: #707681;
    font-size: 10px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


.empty-description {
    font-style: italic;
    color: #4f5560 !important;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.movie-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


.action-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 9px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}


.edit-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #b7bbc4 !important;
}


    .edit-button:hover {
        background: rgba(255, 255, 255, 0.09);
        color: #ffffff !important;
    }


.delete-button {
    border: 1px solid rgba(255, 73, 103, 0.13);
    background: rgba(255, 49, 88, 0.05);
    color: #a85c69;
}


    .delete-button:hover {
        border-color: rgba(255, 73, 103, 0.25);
        background: rgba(255, 49, 88, 0.12);
        color: #ff637d;
    }


/* =========================================================
   PAGINAÇÃO
   ========================================================= */

.catalog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}


/* =========================================================
   VAZIO
   ========================================================= */

.catalog-empty {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.015);
}


.empty-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 15px;
    background: rgba(255, 49, 88, 0.09);
    color: #ff4a68;
}


    .empty-icon i {
        font-size: 23px;
    }


.catalog-empty h3 {
    margin: 0;
    color: #e8eaf0;
    font-size: 17px;
}


.catalog-empty p {
    margin: 8px 0 20px;
    color: #666c77;
    font-size: 10px;
}


/* =========================================================
   CONFIRMAÇÃO
   ========================================================= */

.delete-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}


.confirmation-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ff6079;
    background: rgba(255, 49, 88, 0.10);
}


.delete-confirmation h4 {
    margin: 0 0 5px;
    font-size: 14px;
}


.delete-confirmation p {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 800px) {

    .catalog-page {
        padding: 28px 18px 50px;
    }


    .catalog-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .movie-admin-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }


    .movie-actions {
        width: 100%;
    }


    .action-button {
        flex: 1;
    }
}


@media (max-width: 520px) {

    .catalog-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }


    .summary-divider {
        width: 100%;
        height: 1px;
    }


    .movie-cover {
        width: 78px;
        min-width: 78px;
        height: 118px;
    }


    .movie-admin-content {
        padding: 14px;
    }


    .movie-admin-main p {
        -webkit-line-clamp: 3;
    }
}
