/* -------------------------------------------
   DECLARAÇÃO DE FONTES PERSONALIZADAS
   ------------------------------------------- */
@font-face {
    font-family: 'NewRailAlphabet';
    src: url('../fonts/A2-Type New Rail Alphabet Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NewRailAlphabet';
    src: url('../fonts/A2-Type New Rail Alphabet White.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------
   VARIÁVEIS DE TEMA E GERAL
   ------------------------------------------- */
:root {
    --main-font: "NewRailAlphabet", "Raleway", sans-serif;
    
    /* Variáveis do Tema Claro (Light) */
    --logo-color: #0D0D0D; 
    --background-color: #fff;
    --text-color: #333;
    --dark-text: #4e4e4e;
    --border-color: #eee;
    --card-background: #f4f4f9; /* Fundo do "Quem Somos" */
    --link-color: #555;
    --link-hover: #757575; /* Sua cor personalizada */
    --theme-toggle-border: #4e4e4e;
    --theme-toggle-bg: linear-gradient(90deg, var(--theme-toggle-border) 50%, var(--background-color) 0);
    
    /* Variáveis do Carrossel */
    --center-video-width: 35vw;
    --center-video-height: calc(var(--center-video-width) * 0.5625);
    --carousel-margin-bottom: 0vw;
}

/* Definições do Tema Escuro (Dark) */
body[data-theme="dark"] {
    --logo-color: #FFFFFF; 
    --background-color: #1a1a1a;
    --text-color: #e0e0e0;
    --dark-text: #b0b0b0;
    --border-color: #333;
    --card-background: #2b2b2b;
    --link-color: #b0b0b0;
    --link-hover: #686868; /* Sua cor personalizada */
    --theme-toggle-border: #e0e0e0;
    --theme-toggle-bg: linear-gradient(90deg, var(--background-color) 50%, var(--theme-toggle-border) 0);

    /* --- AJUSTE 1 (TEMA ESCURO) --- */
    /* Define o fundo cinza e a borda clara para a busca no modo escuro */
    --search-bg: #2b2b2b; /* "um cinza no tema escuro" */
    --search-border: #888; /* Borda visível no escuro */
}

/* --- AJUSTE 1 (TEMA CLARO) --- */
/* Define o fundo branco e a borda preta para a busca no modo claro */
:root {
    --search-bg: #fff; /* "branca no tema claro" */
    --search-border: #0D0D0D; /* "borda preta" */
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--main-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: scroll; /* Mantém a barra de rolagem sempre visível */
    transition: background-color 0.3s, color 0.3s;
}

/* -------------------------------------------
   HEADER & NAVEGAÇÃO
   ------------------------------------------- */

header.header-container {
    padding: 50px 40px 30px 40px; 
    max-width: 1500px;
    width: 100%;
    margin: 0 auto; 
    position: relative;
    z-index: 999;
    display: block;
    background-color: var(--background-color);
    /* border-bottom: 1px solid var(--border-color); (Removido a seu pedido) */
}

.theme._home {
    position: absolute;
    z-index: 1000;
    top: 20px; 
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme--languages {
    font-size: 14px;
    font-weight: 400;
    text-transform: lowercase;
    color: var(--dark-text);
    line-height: 1;
}
.theme--languages__row { cursor: pointer; }
.theme--languages__row.active { font-weight: 700; }
.theme--changer {
    display: flex;
    align-items: center;
}
.theme--changer__item {
    cursor: pointer;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    border: 2px solid var(--theme-toggle-border);
    background: var(--theme-toggle-bg);
    transition: background 0.3s;
}
.navbar._home {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center; 
    padding-top: 15px; 
    position: relative; 
}
.navbar--logo {
    text-decoration: none;
    color: var(--logo-color);
    font-size: 26px; 
    font-family: var(--main-font); 
    display: inline-block;
    text-transform: lowercase;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s;
}
.navbar--logo .logo-part-1 { font-weight: 700 !important; margin-right: 0; }
.navbar--logo .logo-part-2{ font-weight: 400; }
.navbar--routes {
    display: flex; 
    flex-direction: row;
    gap: 0.5rem;
    opacity: .5; 
    font-size: 1.125rem; 
    font-weight: 400; 
    color: var(--dark-text);
    text-transform: lowercase;
    margin-left: auto;
    margin-right: auto;
    transform: translate(-50%, -25%) translateX(130px);
    padding-left: 10vw; 
}
.navbar--routes__row {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 400; 
    text-transform: lowercase;
    padding: 0 8px;
    transition: color 0.3s;
}
.navbar--routes__row:hover {
    color: var(--link-hover);
}
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark-text); 
    font-size: 30px; 
    cursor: pointer;
    position: absolute; 
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;    
    transition: transform 0.3s ease-in-out;
}
.mobile-menu-header {
    position: absolute;
    top: 30px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-close-btn {
    background: none;
    border: none;
    color: var(--dark-text); 
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
}
.mobile-menu-header .theme--languages {
    font-size: 16px; 
}
.mobile-lang-switcher span { cursor: pointer; }
.mobile-lang-switcher .active { font-weight: 700; }
.mobile-nav-routes {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 50px;
}
.mobile-nav-routes a {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--link-color);
    text-decoration: none;
    text-transform: lowercase;
}
.mobile-theme-text {
    font-size: 1.25rem;
    text-transform: lowercase;
    margin-top: 30px;
    cursor: pointer;
    color: var(--dark-text); 
}

/* -------------------------------------------
   SEÇÃO CARROSSEL (Sem mudanças)
   ------------------------------------------- */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 100;
    font-size: 24px;
    opacity: 0; 
    transition: opacity 0.3s, background 0.3s;
    display: none; 
}
.carousel-nav.prev-btn { left: 0; border-radius: 0 5px 5px 0; }
.carousel-nav.next-btn { right: 0; border-radius: 5px 0 0 5px; }
.carousel-nav:hover { background: rgba(0, 0, 0, 0.7); }
.videos-container {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: calc(var(--center-video-height) + 50px);
    margin-bottom: var(--carousel-margin-bottom);
    overflow: hidden; 
    z-index: 5;
}
.carousel {
    position: relative; 
    height: 100%;
    transform-style: preserve-3d;
    cursor: grab;
}
.carousel-item {
    position: absolute;
    width: calc(var(--center-video-width) * 0.6);
    height: calc(var(--center-video-height) * 0.6);
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    z-index: 10;
}
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-item.center {
    width: var(--center-video-width); 
    height: var(--center-video-height); 
    z-index: 99;
    transform: translate(-50%, -50%) scale(1.0);
}
.carousel-item.left {
    opacity: 0.5;
    width: calc(var(--center-video-width) * 0.85);
    height: calc(var(--center-video-height) * 0.85);
    transform: translate(-70%, -50%) translateX(calc(-1 * var(--center-video-width) * 0.55)) scale(1.0); 
    z-index: 50; 
}
.carousel-item.right {
    opacity: 0.5;
    width: calc(var(--center-video-width) * 0.85);
    height: calc(var(--center-video-height) * 0.85);
    transform: translate(-30%, -50%) translateX(calc(var(--center-video-width) * 0.55)) scale(1.0); 
    z-index: 50; 
}
.carousel-item.far-left {
    opacity: 0.2; 
    width: calc(var(--center-video-width) * 0.7);
    height: calc(var(--center-video-height) * 0.7);
    transform: translate(-60%, -50%) translateX(calc(-1 * var(--center-video-width) * 1.3)) scale(1.0); 
    z-index: 10;
    pointer-events: none; 
}
.carousel-item.far-right {
    opacity: 0.2; 
    width: calc(var(--center-video-width) * 0.7);
    height: calc(var(--center-video-height) * 0.7);
    transform: translate(-40%, -50%) translateX(calc(var(--center-video-width) * 1.3)) scale(1.0); 
    z-index: 10;
    pointer-events: none; 
}
.carousel-item.off-left, .carousel-item.off-right {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5); 
    z-index: 1;
}

/* -------------------------------------------
   CONTEÚDO E FOOTER
   ------------------------------------------- */

.content-section {
    max-width: 1500px;
    margin: -10px auto 0px auto;
    padding: 40px 5vw; /* Padding vertical */
    text-align: center;
    position: relative;
    z-index: 5;
    transition: background-color 0.3s;
}

.section-title {
    font-family: var(--main-font);
    font-size: 1.125rem; /* Mesmo tamanho do menu (18px) */
    font-weight: 400;    /* Peso normal (menu) */
    color: var(--dark-text);
    text-transform: lowercase;
    opacity: 0.5;        /* Mesma opacidade do menu */
    margin-bottom: 40px; /* Espaço abaixo */
}

.text-block p {
    margin-bottom: 25px;
    color: var(--dark-text);
    font-size: 16px;
}

.footer-container {
    background-color: var(--background-color);
    color: var(--dark-text);
    padding: 10px 20px 30px 20px;
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s, color 0.3s;
}
.footer-container p {
    margin-bottom: 5px;
}

.footer-links a {
    color: var(--dark-text);
    text-decoration: none;
    margin: 0 0 0 10px;
    border-right: none;
    border-left: 1px solid var(--dark-text); /* Borda na esquerda */
    padding-left: 10px;
}
.footer-links a:first-child {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
}
.footer-socials {
    margin-bottom: 15px; /* Espaço entre os ícones e o texto */
}

.social-icon {
    font-size: 1.5rem; /* Tamanho do ícone */
    color: var(--dark-text);
    margin-right: 15px; /* Espaço entre os ícones */
    margin-left: 0;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--link-hover);
}
/* -------------------------------------------
   ESTILOS DOS FORMULÁRIOS (Contato / Cadastro)
   ------------------------------------------- */
/* ... (Todo o CSS de formulário que fizemos permanece o mesmo) ... */
.form-container {
    max-width: 600px; 
    margin: 60px auto;
    padding: 0 20px;
}
.form-view { display: none; }
.form-view.active { display: block; }
.form-separator { display: none; }
.form-section { padding: 20px 0; }
.form-section h2 {
    font-size: 24px;
    font-weight: 600;
    text-transform: lowercase;
    margin-bottom: 30px;
    color: var(--dark-text);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: var(--dark-text);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-background);
    color: var(--text-color);
    font-size: 16px;
    font-family: var(--main-font);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.form-button {
    padding: 12px 20px;
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--logo-color);
    color: var(--background-color);
    border: 1px solid var(--logo-color);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.form-button:hover {
    background-color: var(--link-hover);
    color: white; 
    border-color: var(--link-hover);
}
.form-button:disabled {
    background-color: #ccc;
    color: #888;
    border-color: #ccc;
    cursor: not-allowed;
}
.view-switcher-link {
    display: block;
    margin-top: 25px;
    text-align: center;
    cursor: pointer;
    color: var(--link-hover);
    text-decoration: underline;
    font-weight: 600;
}
.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 20px;
    color: var(--dark-text);
    text-decoration: underline;
}
.form-message {
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    display: none;
}
.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
}
.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* -------------------------------------------
   ESTILOS DA PÁGINA DE ELENCO (AJUSTADOS - TWEAK 4)
   ------------------------------------------- */

.elenco-controls {
    position: relative; 
    height: 60px; 
    margin-top: 30px;
}

.elenco-filters {
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); 
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--main-font);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--dark-text);
    text-transform: lowercase;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s, color 0.3s;
}
.filter-btn:hover { opacity: 1; }
.filter-btn.active { opacity: 1; font-weight: 700; }

.search-bar {
    display: flex;
    position: absolute;
    right: 20px; 
    top: 50%;
    transform: translateY(-50%);
}

.search-bar input {
    /* --- AJUSTE 1 (TEMA) --- */
    border: 1px solid var(--search-border);    /* Borda dinâmica */
    background-color: var(--search-bg);      /* Fundo dinâmico */
    border-radius: 50px;                    
    padding: 10px 15px;                    
    font-family: var(--main-font);
    font-size: 1rem;
    color: var(--text-color);
    width: 300px; 
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}
.search-bar input:focus {
    outline: none;
    border-color: var(--link-hover);
    box-shadow: 0 0 0 2px var(--link-hover-opacity, rgba(90, 103, 216, 0.2));
}
.search-bar button {
    display: none; 
}

/* --- A GALERIA DE ATORES --- */
.actor-grid {
    display: grid;
    gap: 20px;
    padding: 40px 20px; /* "Respiro" lateral */
    grid-template-columns: repeat(5, 1fr);
}
.actor-card {
    text-decoration: none;
    color: var(--dark-text);
    text-align: center;
}
.actor-card-image {
    width: 100%;
    overflow: hidden; 
    aspect-ratio: 2 / 3; 
    background-color: var(--card-background); 
}
.actor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: grayscale(100%);
    transition: filter 0.4s ease-in-out, transform 0.4s ease;
}
.actor-card:hover .actor-card-image img {
    filter: grayscale(0%); 
    transform: scale(1.05); 
}
.actor-card h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: lowercase;
}

/* -------------------------------------------
   MEDIA QUERIES (Responsivo)
   ------------------------------------------- */

/* ... (Media queries de 1100px, 801px, etc. continuam iguais) ... */
@media (max-width: 1100px) {
    :root {
        --center-video-width: 50vw;
    }
    .carousel-item.left {
        transform: translate(-70%, -50%) translateX(calc(-1 * var(--center-video-width) * 0.65)) scale(1.0); 
        z-index: 50; 
    }
    .carousel-item.right {
        transform: translate(-30%, -50%) translateX(calc(var(--center-video-width) * 0.65)) scale(1.0); 
        z-index: 50; 
    }
    .carousel-item.far-left,
    .carousel-item.far-right {
        opacity: 0; 
        pointer-events: none;
        z-index: 10;
    }
}

@media (min-width: 801px) {
    .hamburger-btn {
        display: none !important;
    }
    .navbar--routes, .theme-changer, .theme._home {
        display: flex !important; 
    }
    header.header-container {
        padding: 50px 40px 30px 40px;
    }
    header .navbar--logo {
        padding-left: 5rem;
    }
    .navbar--routes {
        padding-left: 10vw;
    }
}


/* Telas menores (<= 1023px): 2 colunas */
@media (max-width: 1023px) {
    
    .actor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .elenco-controls {
        display: flex;
        flex-direction: column; 
        align-items: center;    
        gap: 25px;
        position: static; 
        height: auto;
    }

    .elenco-filters {
        position: static;
        transform: none;
        /* Garante que os filtros quebrem a linha se não couberem */
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-bar {
        position: static;
        transform: none;
        
        /* --- AJUSTE 2 (MOBILE) --- */
        width: 60%; /* "quero o campo de busca a 60%" */
        /* A centralização já é feita pelo 'align-items: center' do pai (.elenco-controls) */
    }
    
    .search-bar input {
        width: 100%; /* Input preenche a barra */
    }
}

/* ... (Media query de 800px continua igual) ... */
@media (max-width: 800px) {
    :root {
        --center-video-width: 85vw; 
    }
    .videos-container {
        padding-top: 30px;
        min-height: calc(var(--center-video-height) + 30px);
        align-items: center;
    }
    .theme._home,
    .navbar--routes {
        display: none;
    }
    header.header-container {
        padding: 20px 20px;
    }
    .carousel {
        cursor: auto; 
    }
    .hamburger-btn {
        display: block; 
        right: 20px;
    }
    .navbar--logo {
        left: 20px;
    }
    .carousel-nav {
        opacity: 1;
        display: block;
        background: rgb(255, 255, 255);
        color: var(--dark-text);
        border: none; 
        height: var(--center-video-height);
        top: 50%; 
        transform: translateY(-46%);
    }
    .carousel-nav:hover {
        background: rgba(255, 255, 255, 1);
    }
    .carousel-item.left, 
    .carousel-item.right,
    .carousel-item.far-left,
    .carousel-item.far-right,
    .carousel-item.off-left, 
    .carousel-item.off-right {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.5);
    }
    .carousel-item {
        width: var(--center-video-width); 
        height: var(--center-video-height);
    }

    /* Ajuste para o formulário de contato no mobile */
    @media (max-width: 800px) {
        .form-container {
            margin: 30px auto;
        }
        .form-section {
            padding: 0 10px;
        }
    }
}

/* -------------------------------------------
   CLASSE AUXILIAR PARA IDIOMAS
   ------------------------------------------- */
.lang-hidden {
    display: none !important;
}


/* -------------------------------------------
   FASE 3: ESTILOS DO MODAL DE PERFIL DO ATOR
   ------------------------------------------- */

/* O Fundo (Overlay) Transparente */
.perfil-modal-overlay {
    position: fixed; /* Cobre a tela inteira */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro com 70% de transparência */
    display: none; /* Começa escondido */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; /* Para transição suave */
    transition: opacity 0.3s ease;
}
/* Classe que o JS vai adicionar para mostrar */
.perfil-modal-overlay.visible {
    display: flex;
    opacity: 1;
}

/* O Conteúdo (Caixa Branca) */
.perfil-modal-content {
    position: relative;
    background-color: var(--background-color);
    width: 90%;
    max-width: 1200px; /* Limite máximo do modal */
    height: auto; 
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 40px;
    overflow: hidden;
    overflow-y: auto; /* Para conter os elementos */
    display: flex; /* Para o layout interno */
}

/* O Botão de Fechar (X) */
.perfil-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--dark-text);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

/* O Layout de 2 Colunas (Grid) */
.perfil-modal-grid {
    display: grid;
    grid-template-columns: 35% 1fr; /* 35% para info, resto para mídia */
    gap: 40px;
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* 1. Coluna Esquerda (Info) */
.perfil-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.perfil-info h2 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--logo-color);
    margin: 0;
}
.perfil-info a svg {
    width: 24px;
    height: 24px;
    color: var(--dark-text);
    margin-top: 10px;
}
.perfil-curriculo {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    flex-grow: 1; /* Faz este bloco crescer e ocupar o espaço */
    overflow-y: auto; /* Adiciona o scroll SÓ neste bloco */
    min-height: 0;
    padding-right: 10px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
    font-family: var(--main-font) !important;
}
/* Permite que o texto do admin (negrito, etc) seja renderizado */
.perfil-curriculo p, .perfil-curriculo ul {
    margin-bottom: 1em;
    font-family: var(--main-font) !important;
    background-color: transparent !important;
}
.perfil-curriculo strong { font-weight: 700; }
.perfil-curriculo em { font-style: italic; }

.perfil-curriculo::-webkit-scrollbar {
    width: 6px;
}
.perfil-curriculo::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.perfil-curriculo::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.perfil-curriculo::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 2. Coluna Direita (Mídia) */
.perfil-media {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
}

/* 2a. Carrossel de Fotos */
.perfil-photo-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 5;
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* 2b. Grade de Vídeos (Miniaturas) */
.perfil-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas como no seu design */
    gap: 15px;
    flex-shrink: 0; /* Não encolhe */
}
.video-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 5px;
    pointer-events: none;
}
.video-thumb p { /* Título (Apresentação, Monólogo...) */
    position: absolute;
    bottom: 5px;
    left: 0px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    pointer-events: none;
}

/* -------------------------------------------
   AJUSTE FINO: Ícone do Instagram no Modal
   ------------------------------------------- */

/* Seleciona o ícone 'i' dentro do link 'a' com id 'modal-ator-insta' */
.perfil-info a#modal-ator-insta i {
    font-size: 24px; /* Tamanho do ícone (igual ao SVG antigo) */
    color: var(--dark-text); /* Cor padrão dos ícones */
    margin-top: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

/* Efeito hover (opcional, mas recomendado) */
.perfil-info a#modal-ator-insta:hover i {
    color: var(--link-hover); /* Muda de cor no hover */
}


/* -------------------------------------------
   ESTILOS DO LIGHTBOX DE VÍDEO (Pop-up do Player)
   ------------------------------------------- */
.video-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Mais escuro */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Fica por cima do outro modal */
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-lightbox-overlay.visible {
    display: flex;
    opacity: 1;
}
.video-lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}
.video-lightbox-content {
    width: 80%;
    max-width: 960px;
}
.video-lightbox-content video {
    width: 100%;
    height: auto;
}

/* -------------------------------------------
   RESPONSIVIDADE DO MODAL (Mobile)
   ------------------------------------------- */
@media (max-width: 800px) {
    .perfil-modal-content {
        padding: 15px; /* Menos padding para ganhar espaço */
        width: 95%;
        
        /* MUDANÇA CRUCIAL: Altura automática (máximo 95% da tela) */
        height: auto; 
        max-height: 95vh; 
        
        display: flex;
        flex-direction: column;
    }
    .perfil-modal-grid {
        /* Empilha as colunas */
        grid-template-columns: 1fr; 
        gap: 20px;
        
        /* Permite scroll no grid inteiro se passar da altura */
        overflow-y: auto; 
        height: auto;
        display: block; /* Muda de grid para block para empilhar naturalmente */
    }
    .perfil-info {
        /* Remove o scroll interno da info no mobile, deixa a página rolar */
        overflow-y: visible; 
        height: auto;
        margin-bottom: 20px;
    }
    .perfil-media {
        height: auto; /* Altura automática para a mídia */
    }
    .perfil-photo-carousel {
        width: 100%;
        /* Remove aspect-ratio fixo ou ajusta para quadrado/retrato suave */
        aspect-ratio: 3 / 4; 
        margin-bottom: 15px;
    }
    .perfil-video-grid {
        /* 2 colunas de vídeo é bom, mas vamos garantir que caibam */
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
    }
}

/* -------------------------------------------
   ESTILOS DOS FILTROS EXCLUSIVOS (PRODUTOR) - VERSÃO CHECKBOX
   ------------------------------------------- */
.exclusive-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; /* Mais espaço */
    padding: 10px;

    opacity: 0.5;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer; /* Faz a área toda ser clicável */
}

/* O label (texto) do filtro */
.filter-group label {
    font-family: var(--main-font);
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 400;
    text-transform: lowercase;
    cursor: pointer;
}

/* Estilo do Checkbox */
.filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    /* Estilo moderno de checkbox */
    accent-color: var(--link-hover);
}

/* -------------------------------------------
   FASE 3 (UPGRADE): ESTILOS DOS DETALHES E DOWNLOAD
   ------------------------------------------- */

/* Estilo para "Olhos: Verde | Cabelo: Castanho" */
.perfil-detalhes {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--dark-text);
    opacity: 0.7;
}

.perfil-detalhes span {
    margin-right: 5px;
}

.perfil-detalhes span:not(:last-child)::after {
    content: "|";
    margin-left: 5px;
}

/* Estilo para o link de Download de Vídeo */
.video-download-link {
    display: none; /* Começa escondido */
    margin-top: 10px;
    padding: 8px 12px;
    background-color: var(--link-hover);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.video-download-link:hover {
    background-color: var(--logo-color);
}
/* O JS vai usar esta classe para mostrar o link */
.video-download-link.visible {
    display: block;
}
.video-download-link i {
    margin-right: 8px;
}

.carousel-img-container {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.carousel-img-container.active {
    opacity: 1;
}
.carousel-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Regra para posicionar o cadeado DENTRO do container do carrossel */
.carousel-img-container .exclusive-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    /* Reutiliza o estilo do admin, mas talvez precise de ajustes */
    font-size: 1rem; 
    padding: 6px 8px;
}

/* Regra para posicionar o cadeado DENTRO da miniatura de vídeo */
.video-thumb .exclusive-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}


/* -------------------------------------------
   FASE 5 (NOVO PLANO): ESTILOS DO DOWNLOAD PDF
   ------------------------------------------- */

/* (A regra .pdf-select-checkbox foi REMOVIDA) */

/* Botão de "Download" (no modal principal) */
.pdf-download-button {
    background-color: transparent;
    border: 1px dashed var(--dark-text); /* Borda tracejada (como a área vermelha) */
    color: var(--dark-text);
    padding: 15px;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 1rem;
    text-transform: lowercase;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px; /* Espaço acima */
    width: 100%;
    flex-shrink: 0;
    /* Escondido por padrão, visível para produtores */
    display: none;
    transition: all 0.3s;
}
.pdf-download-button.visible {
    display: block;
}
.pdf-download-button:hover {
    background-color: var(--card-background);
    color: var(--link-hover);
}
.pdf-download-button:disabled {
    background-color: #ccc;
    color: #888;
    border-color: #ccc;
    cursor: not-allowed;
}

.pdf-select-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pdf-select-container h2 {
    color: var(--logo-color);
    text-transform: lowercase;
    font-weight: 700;
}
.pdf-select-container p {
    color: var(--dark-text);
    margin-bottom: 20px;
}

/* A grade de fotos com checkboxes */
.pdf-select-grid {
    flex-grow: 1; /* Ocupa o espaço disponível */
    overflow-y: auto; /* Permite scroll só na grade */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Grade responsiva */
    grid-auto-rows: max-content;
    gap: 15px;
    padding: 15px;
    background-color: var(--card-background);
    border-radius: 8px;
    margin-bottom: 20px;
}

.pdf-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 150%; 
    height: 0;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    background-color: #ddd;
}
.pdf-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
    opacity: 0.5; 
    border: 3px solid transparent;
}
.pdf-thumb input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 25px;
    z-index: 10;
    cursor: pointer;
    accent-color: var(--link-hover);
}

.pdf-thumb input:checked + img {
    opacity: 1; /* Fica nítida ao ser ticada */
    border: 3px solid var(--link-hover); /* Borda de seleção */
}

/* -------------------------------------------
   AJUSTES FINAIS (Header, Contato)
   ------------------------------------------- */

/* 1. Ícones Sociais no Header (Lado Direito) */
.header-socials {
    position: absolute;
    right: 0; /* Encostado na direita */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
}

.social-icon-header {
    font-size: 1.2rem;
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
}
.social-icon-header:hover {
    color: var(--link-hover);
}

/* Botões de Escolha (Estilo Texto Limpo) */
.choice-buttons-container {
    display: flex;
    flex-direction: row; /* Lado a lado */
    justify-content: center; /* Centralizado na tela */
    align-items: flex-start; /* Alinha pelo topo */
    gap: 40px; /* Espaço generoso entre eles */
    margin: 20px auto 60px auto;
    flex-wrap: wrap; /* Permite cair para baixo em telas pequenas */
    width: 100%;
}

.btn-choice {
    background: none;
    border: none;
    width: 45%;
    min-width: 220px;
    height: auto;
    padding: 0;
    font-family: var(--main-font);
    font-size: 24px;     /* Igual ao título */
    font-weight: 600;    /* Igual ao título */
    text-transform: lowercase; /* Igual ao título */
    color: var(--dark-text);   /* Igual ao título */
    opacity: 0.5;        /* Igual ao título */
    text-align: center; /* Centraliza o texto */
    line-height: 1.3; /* Espaçamento bom entre as linhas */
    cursor: pointer;
    transition: color 0.3s;
}

/* Efeito Hover: Muda de cor e sublinha */
.btn-choice:hover {
    opacity: 1; /* Fica nítido */
    color: var(--link-hover); /* Fica cinza/cor de destaque */
    background: none;
}

/* (Opcional) Adiciona um sublinhado animado */
.btn-choice::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--link-hover);
    transition: width 0.3s;
    margin: 2px auto 0;
}
.btn-choice:hover::after {
    width: 100%;
}

@media (max-width: 600px) {
    .choice-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .btn-choice {
        width: 100%; /* No celular ocupa tudo */
    }
}

/* -------------------------------------------
   CORREÇÃO: MODAL DE PDF NO MOBILE
   ------------------------------------------- */

@media (max-width: 800px) {
    
    .header-socials {
        display: none; /* Esconde no mobile para não trepar no hambúrguer */
    }

    /* 1. Garante que o modal tenha altura para mostrar o conteúdo */
    #pdf-select-modal-overlay .perfil-modal-content {
        height: 95vh !important;
        width: 95% !important;
        padding: 15px;
    }

    /* 2. Ajusta o container interno para não colapsar */
    .pdf-select-container {
        flex-grow: 1;
        height: 100%;
        overflow: hidden; /* Impede que a página role junto */
    }

    /* 3. Ajusta a grade de fotos para caber no celular */
    .pdf-select-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
        padding: 10px;
    }

    /* 4. Ajusta as miniaturas */
    .pdf-thumb {
        padding-bottom: 150%;
    }
    
    /* 5. Ajusta os botões de rádio (Retrato/Paisagem) para não quebrar linha feio */
    .pdf-options {
        flex-direction: column; /* Empilha as opções se precisar */
        gap: 10px;
        margin-bottom: 15px;
    }
}