/*
|--------------------------------------------------------------------------
| GUIALUX APP3 - VIDEOS - CSS EXCLUSIVO
| /app3/front/assets/css/GuiaLAFrontendVideos.css
| Usa frontend.css e GuiaLAFrontendPerfil.css, sem modificar arquivos comuns.
|--------------------------------------------------------------------------
*/

/* Banner, breadcrumb e faixa informativa: mesmas classes do perfil2.php.
   As imagens, cores e efeitos do banner vêm do CSS compartilhado. */
.gla-videos-page .gla-front-hero.gla-videos-banner {
    min-height: 0;
    height: auto;
    margin-bottom: 0;
    padding: 22px 0 115px;
}
.gla-videos-page .gla-videos-banner .gla-front-profile-headline { width: 100%; }
.gla-videos-page .gla-videos-profile {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: -100px auto 0;
    padding: 0 16px 48px;
}
.gla-videos-page .gla-videos-topbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 10px;
}
.gla-videos-page .dark-btn {
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 9px;
    padding: 9px 13px;
    background: rgba(40,35,45,.85);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

/* Identificação do anunciante sobreposta ao hero, como no perfil APP3. */
.gla-videos-page .gla-videos-profile-card {
    padding: 20px;
    margin-bottom: 16px;
}
.gla-videos-page .gla-videos-profile-inner {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) 160px;
    gap: 18px;
    align-items: center;
}
.gla-videos-page .avatar {
    display: block;
    width: 108px;
    height: 108px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gla-surface-muted, #f2f3f5);
}
.gla-videos-page .avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gla-videos-page .gla-videos-profile-name { margin: 4px 0 8px; color: #293141; font-size: clamp(1.25rem,2.3vw,1.75rem); }
.gla-videos-page .gla-front-profile-chips { margin: 0 0 10px; }
.gla-videos-page .hero-desc { margin: 0; color: #687385; line-height: 1.55; font-size: .88rem; }
.gla-videos-page .meta-line { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 10px; color: #687385; font-size: .81rem; }
.gla-videos-page .gla-videos-rating-box {
    align-self: center;
    padding: 12px;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    background: #fbfbfc;
    display: grid;
    justify-items: center;
    text-align: center;
    font-size: .79rem;
}
.gla-videos-page .rating-number { color: #293141; font-size: 1.45rem; line-height: 1.3; font-weight: 800; }
.gla-videos-page .rating-stars { color: #e4a11b; margin: 4px 0; }
.gla-videos-page .rating-total { color: #687385; margin-bottom: 7px; }

/* Seções e cards do APP3: branco, borda discreta e 14px de raio. */
.gla-videos-page .gla-videos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
    align-items: start;
}
.gla-videos-page .gla-videos-layout > * { min-width: 0; }
.gla-videos-page .card { padding: 18px; margin-bottom: 16px; }
.gla-videos-page .card-title { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 1rem; font-weight: 750; color: #293141; }
.gla-videos-page .card-title h2 { margin: 0; font-size: 1.08rem; }
.gla-videos-page .card-title-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: #fff0f6; color: #b01754; }
/* Conteúdo principal: vídeo responsivo e galeria intactos. */
.gla-videos-page .featured-container { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 12px; background: #101015; }
/* Painéis laterais, recomendações e retorno. */
.gla-videos-page .profile-summary { display: grid; }
.gla-videos-page .summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e8eaf0; font-size: .83rem; }
.gla-videos-page .summary-row:last-child { border: 0; }
.gla-videos-page .summary-row span:last-child { text-align: right; overflow-wrap: anywhere; }
.gla-videos-page .profile-list { display: grid; gap: 9px; }
.gla-videos-page .profile-item { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid #e8eaf0; border-radius: 11px; background: #fbfbfc; }
.gla-videos-page .profile-item .avatar { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 9px; }
.gla-videos-page .profile-info { flex: 1; min-width: 0; font-size: .82rem; }
.gla-videos-page .profile-name { text-decoration: none; font-weight: 750; color: #293141; }
.gla-videos-page .profile-local, .gla-videos-page .profile-price { color: #687385; }
.gla-videos-page .verified-badge { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #e3f5e8; color: #0b633c; font-size: .72rem; font-weight: 750; }
.gla-videos-page .gla-videos-bottom-actions { margin-top: 4px; }
.gla-videos-page .back-btn { display: inline-flex; padding: 11px 16px; border-radius: 9px; background: #d92269; color: #fff; font-weight: 750; text-decoration: none; }
.gla-videos-page .back-btn:hover { background: #b01754; }

.gla-videos-page .video-gallery-card .videos-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(135px,1fr)); gap: 10px; }
.gla-videos-page .video-gallery-card .video-item { background: #fff; border: 1px solid var(--gla-border, #e6e8ec); border-radius: 11px; overflow: hidden; }
.gla-videos-page .video-gallery-card .video-item a { display: block; color: inherit; text-decoration: none; }
.gla-videos-page .video-gallery-card .video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f3f3f3; }
.gla-videos-page .video-gallery-card .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Optional video-content dark mode, without changing shared APP3 header/navigation. */
.gla-videos-page.dark-mode .gla-videos-profile-card,
.gla-videos-page.dark-mode .gla-videos-layout .gla-front-profile-panel { background: #1b2433; border-color: #334155; color: #f1f3f7; }
.gla-videos-page.dark-mode .gla-videos-profile-name,
.gla-videos-page.dark-mode .gla-videos-layout h2,
.gla-videos-page.dark-mode .gla-videos-layout h3 { color: #f1f3f7; }
.gla-videos-page.dark-mode .gla-videos-profile-card p,
.gla-videos-page.dark-mode .gla-videos-layout p { color: #c5cbd5; }
.gla-videos-page.dark-mode .profile-item,
.gla-videos-page.dark-mode .gla-videos-rating-box { background: #232e40; border-color: #334155; }

@media (max-width: 980px) {
    .gla-videos-page .gla-videos-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .gla-videos-page .gla-front-hero.gla-videos-banner { padding: 8px 0 35px; }
    .gla-videos-page .gla-videos-profile { margin-top: -20px; padding: 0 12px 32px; }
    .gla-videos-page .gla-videos-topbar { margin-bottom: 6px; }
    .gla-videos-page .dark-btn { padding: 6px 10px; }
    .gla-videos-page .gla-videos-profile-inner { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
    .gla-videos-page .gla-videos-profile-inner > .avatar { width: 72px; height: 72px; }
    .gla-videos-page .gla-videos-rating-box { grid-column: 1 / -1; }
    .gla-videos-page .gla-videos-profile-card { padding: 14px; }
    .gla-videos-page .card { padding: 14px; }
    .gla-videos-page .video-gallery-card .videos-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Confirmação de idade: somente quando o controle central está no modo 2. */
.gla-videos-age-message {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e7bbd0;
    border-radius: 10px;
    background: #fff0f6;
    text-align: center;
}
.gla-videos-age-message[hidden] { display: none; }
.gla-videos-age-message p { margin: 0 0 8px; color: #6a2446; font-size: .83rem; }
.gla-videos-age-message button {
    border: 0;
    border-radius: 8px;
    padding: 10px 15px;
    background: #d92269;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.gla-videos-page .gla-videos-empty { text-align: center; padding: 54px 20px; }
.gla-videos-page .gla-videos-empty-label {
    display: inline-block; padding: 5px 12px;
    border-radius: 999px; color: #a31b51; background: #fff0f6; font-weight: 700;
}
.gla-videos-page .gla-videos-empty h2 { font-size: 1.45rem; margin: 15px 0 8px; }
.gla-videos-page .gla-videos-empty .back-btn { margin-top: 10px; }
.gla-videos-page .gla-videos-profile-inner .rating-stars { letter-spacing: .08em; }
.gla-videos-page .profile-item { color: #293141; text-decoration: none; }
.gla-videos-page .profile-local { display: block; margin-top: 4px; }
.gla-videos-page .profile-item .verified-badge { display: inline-block; margin-top: 4px; }
.gla-videos-page .unverified-badge {
    display: inline-block; padding: 5px 9px; border-radius: 999px;
    background: #fff0f0; color: #b91c1c; font-size: .72rem; font-weight: 750;
}

/* Player principal: evita estouro no mobile, preservando proporções. */
.gla-videos-page .featured-container video { width: 100%; height: 100%; display: block; object-fit: contain; }
.gla-videos-page .video-gallery-card .video-item { min-width: 0; }


/* Navegação e player incorporados aos painéis do layout original. */
.gla-videos-page .gla-front-profile-hero-strip a {
    color: inherit;
    text-underline-offset: 2px;
}

.gla-videos-page .gla-videos-profile-link {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding-inline: 8px;
    font-size: .78rem;
}

.gla-videos-page .summary-row a { color: #941748; }

.gla-videos-page .gla-videos-play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(16, 16, 21, .24);
}

.gla-videos-page .featured-video [hidden],
.gla-videos-page .gla-videos-topbar [hidden] { display: none; }

.gla-videos-page .video-play-btn {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #9d1d52;
    color: #fff;
    cursor: pointer;
}

.gla-videos-page .video-play-btn:hover { background: #761139; }

.gla-videos-page .gla-videos-play-icon {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-block: 11px solid transparent;
    border-inline-start: 17px solid currentColor;
}

.gla-videos-page .featured-video .gla-videos-age-message {
    margin: 0 10px;
    background: #fff0f6;
}

.gla-videos-page.dark-mode .gla-videos-age-message p { color: #6a2446; }

.gla-videos-page .gla-videos-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.gla-videos-page .gla-videos-pagination a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff0f6;
    color: #8f1749;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.gla-videos-page .gla-videos-pagination a:hover { background: #f9dce9; }
.gla-videos-page .gla-videos-next { margin-inline-start: auto; }

.gla-videos-page .gla-videos-player-error {
    margin: 8px 0 0;
    padding: 4px 9px;
    border-radius: 8px;
    background: #fff0f2;
    color: #8a183d;
}

.gla-videos-page.dark-mode .gla-videos-player-error { color: #8a183d; }

.gla-videos-page .gla-videos-player-error button {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.gla-videos-page #gla-videos-gallery { scroll-margin-top: 88px; }

.gla-videos-page .video-gallery-card .video-thumb { display: block; background: #272235; }
.gla-videos-page .video-gallery-card .video-thumb img { display: block; object-fit: contain; }
.gla-videos-page .video-gallery-card .video-title { display: block; min-height: 44px; padding: 8px; }

.gla-videos-page .gla-videos-number {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 2px 7px;
    border-radius: 5px;
    background: #271926;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.gla-videos-page .gla-videos-gallery-current {
    display: block;
    background: #fff0f6;
    color: #8f1749;
}

.gla-videos-page .gla-videos-gallery-current small {
    display: block;
    font-size: .74rem;
}

.gla-videos-page .video-item:has([aria-current]),
.gla-videos-page .video-item:hover { border-color: #cf648f; }

.gla-videos-page .gla-videos-layout :focus-visible,
.gla-videos-page .gla-videos-profile-card :focus-visible,
.gla-videos-page .dark-btn:focus-visible {
    outline: 2px solid #c52666;
    outline-offset: -2px;
}

.gla-videos-page.dark-mode .rating-number,
.gla-videos-page.dark-mode .profile-name,
.gla-videos-page.dark-mode .profile-local,
.gla-videos-page.dark-mode .rating-total,
.gla-videos-page.dark-mode .meta-line,
.gla-videos-page.dark-mode .card-title,
.gla-videos-page.dark-mode .summary-row a { color: #f1f3f7; }

.gla-videos-page.dark-mode .video-item { background: #232e40; border-color: #45516a; }
.gla-videos-page.dark-mode .gla-videos-gallery-current { background: #4a2c43; color: #fff; }

@media (max-width: 700px) {
    .gla-videos-page .gla-videos-rating-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        align-items: center;
    }
    .gla-videos-page .gla-videos-profile-link { margin-top: 0; }
    .gla-videos-page .rating-number { font-size: 1.15rem; }
    .gla-videos-page .rating-total { grid-column: 1 / -1; margin-bottom: 0; }
}

/* Blocos de anúncios no mesmo padrão visual do frontend APP3. */
.gla-videos-page .gla-videos-count {
    margin-inline-start: auto;
    color: #525e70;
    font-size: .75rem;
    font-weight: 600;
}

.gla-videos-page .gla-videos-publicidade { margin: 4px 0 16px; }

.gla-videos-page .gla-videos-results {
    margin: 0 0 16px;
    padding: 18px;
    scroll-margin-top: 88px;
}

.gla-videos-page .gla-videos-results.gla-front-virtual-featured {
    border: 1px solid #244a74;
    border-radius: 14px;
    background: #0f3460;
    color: #fff;
}

.gla-videos-page .gla-videos-results h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.gla-videos-page .gla-videos-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 192px), 1fr));
    gap: 12px;
    column-count: auto;
}

.gla-videos-page .gla-videos-result-card { display: block; margin: 0; }
.gla-videos-page .gla-videos-result-media { display: block; aspect-ratio: 16 / 10; }

.gla-videos-page .gla-videos-result-media video,
.gla-videos-page .gla-videos-result-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gla-videos-page .gla-videos-result-media video { background: #181520; }
.gla-videos-page .gla-videos-result-media video[controls] { object-fit: contain; }

.gla-videos-page .gla-videos-card-play { position: absolute; inset: 0; }
.gla-videos-page .gla-videos-card-play[hidden] { display: none; }
.gla-videos-page .gla-videos-card-play:focus-visible { outline: 3px solid #c52666; outline-offset: -3px; }

.gla-videos-page .gla-videos-discovery-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #8f1749;
    color: #fff;
}

.gla-videos-page .gla-videos-discovery-play::before {
    content: "";
    margin-inline-start: 2px;
    border-block: 6px solid transparent;
    border-inline-start: 9px solid currentColor;
}

.gla-videos-page .gla-videos-result-info { padding: 10px; overflow-wrap: anywhere; }
.gla-videos-page .gla-videos-result-info h3 { margin: 0 0 5px; font-size: .95rem; }
.gla-videos-page .gla-videos-result-info p { margin: 0 0 5px; }

.gla-videos-page .gla-videos-result-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
}

.gla-videos-page .gla-videos-result-links a { color: #8f1749; }
.gla-videos-page .gla-front-ad-card-virtual .gla-videos-result-links a { color: #e2f0ff; }

.gla-videos-page.dark-mode .gla-videos-count,
.gla-videos-page.dark-mode .gla-videos-result-card a,
.gla-videos-page.dark-mode .gla-videos-result-card .gla-front-ad-meta { color: #e0e5ef; }

.gla-videos-page.dark-mode .gla-videos-results.gla-front-profile-panel,
.gla-videos-page.dark-mode .gla-videos-result-card:not(.gla-front-ad-card-virtual) {
    background: #1b2433;
    color: #f1f3f7;
}

@media (max-width: 700px) {
    .gla-videos-page .gla-videos-results { padding: 12px; }
    .gla-videos-page .gla-videos-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .gla-videos-page .video-gallery-card .card-title { flex-wrap: wrap; }
}

/* Bloqueia a prévia desde o HTML inicial até o AgeGate confirmar a idade. */
.gla-videos-page[data-gla-age-enabled="1"]:not([data-gla-age-status="verified"])
.gla-videos-profile .gla-front-ads-grid > .gla-front-ad-card,
.gla-videos-page[data-gla-age-enabled="2"]:not([data-gla-age-status="verified"])
.gla-videos-result-media > [data-gla-age-sensitive="1"] > .gla-front-ad-photo {
    visibility: hidden;
}
