/* Home page -- actors carousel (stories-style, reuses .video-page-actor-item)*/
[data-carousel-track] a,
[data-carousel-track] img {
    -webkit-user-drag: none;
    user-select: none;
}

[data-carousel-track].is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

/* Prev/next stepper -- shared by any `[data-carousel]` wrapper (see
   videos.js). Native scroll/touch-swipe still works on the track underneath. */
.carousel-nav {
    position: relative;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.carousel-nav-prev {
    left: -0.75rem;
}

.carousel-nav-next {
    right: -0.75rem;
}

@media (max-width: 576px) {
    .carousel-nav-btn {
        display: none;
    }
}

.video-page-actor-item-all {
    margin-right: 1rem;
}

.video-page-actor-item-all-icon {
    width: 81px;
    height: 81px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-secondary-bg, #e9ecef);
    font-size: 1.25rem !important;
}


/* Filters (featured categories as chips)
   -------------------------------------------------------------------------- */
.m-content-filters-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
}

.content-filter-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid var(--bs-gray-800, #dee2e6);
    padding: 0.4rem 1rem;
    text-decoration: none;
    font-size: 0.75rem;
    white-space: nowrap;
    text-decoration: none !important;
}

.content-filter-chip-active {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    border-color: transparent;
}

.content-filter-chip-all {
    font-weight: 600;
    margin-right: 1rem;
}


/* Home page -- big Vídeos/Packs mode toggle
   -------------------------------------------------------------------------- */
.videos-mode-toggle .navtabs .btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.videos-mode-toggle .navtabs .btn-group .btn {
    padding: 0.65rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}


/* Video card grid
   -------------------------------------------------------------------------- */
.video-grid {
    row-gap: 1.5rem;
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color, #6c757d);
}

.content-card {
    position: relative;
    border-radius: 0.5rem;
    background: var(--bs-body-bg, #fff);
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);*/
    border: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card .media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    /*aspect-ratio: 1;*/
    overflow: hidden;
    /*border-radius: 0.5rem 0.5rem 0 0;*/
}

.content-card .media.blur img {
    filter: blur(10px);
    transform: scale(1.05);
}

.content-card .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*aspect-ratio: 1 / 1;*/
    aspect-ratio: 16 / 9;
    min-width: 150px;
    min-height: 150px;
}

.content-card-body {
    /*padding: 0.75rem 1rem 1rem;*/
}

.content-card h3 {
    font-size: .938rem;
    margin: 0;
}

.content-card a {
    color: inherit;
    text-decoration: none !important;
}

.content-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: .313rem;
    margin-bottom: .375rem;
}


/* Card badges (Novo / VIP star) and duration pill
   -------------------------------------------------------------------------- */
.content-card-badges {
    position: absolute;
    top: -0.4rem;
    left: 0.6rem;
    z-index: 2;
    display: flex;
    gap: 0.35rem;
}

.content-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    /*color: #fff;*/
    /* Inner highlight along the top + a real drop shadow below -- gives the
       badge some relief instead of sitting flat on the card. */
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.35);
}

.content-card .badge-new {
    padding: 0.3rem 0.55rem;
    background: var(--bs-primary, #0d6efd);
    color: var(--st-text);
    letter-spacing: 0.03em;
}

.content-card .badge-vip {
    width: 1.6rem;
    height: 1.6rem;
    background: #f5b301;
    color: #111;
}

.content-card .duration,
.content-card .content-card-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.content-card .content-card-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}


/* Category cards (categorias / categoria listing)
   -------------------------------------------------------------------------- */
.full-card-grid {
    row-gap: 1.5rem;
}

.full-card {
    position: relative;
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    aspect-ratio: 4 / 3;
    @media (max-width: 576px) {
        aspect-ratio: 1;
    }
}

.full-card img {
    transition: 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-card:focus img,
.full-card:hover img {
    transition: 0.5s ease;
    scale: 1.5;
}

.full-card-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    background: #000000;
    background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(255, 255, 255, 0) 100%);
    background: -moz-linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#FFFFFF", GradientType=0);
}

.full-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;

    @media (max-width: 576px) {
        font-size: .938rem;
    }
}

.full-card-count {
    font-size: 0.8rem;
    opacity: 0.85;
}


/* Category page header
   -------------------------------------------------------------------------- */
.videos-category-header {
    padding-top: 1.5rem;
}

.videos-category-description {
    color: var(--bs-secondary-color, #6c757d);
    max-width: 60ch;
}


/* Video page
   -------------------------------------------------------------------------- */
.video-page-title {
    /*font-size: 1.6rem;*/
    /*margin: 1rem 0;*/
    font-weight: 700;
    font-size: 1.2rem;

    @media (max-width: 576px) {
        margin-top: 0;
    }
}

.m-player,
.m-content,
.video-page-vip,
.video-page-main,
.video-player,
.m-content-page-sidebar,
.m-results,
.container
{
    @media (max-width: 576px) {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
}

.m-content {
    padding-top: 0 !important;
}


.m-content,
aside .ad-slot {
    margin-bottom: 1rem;
    @media (min-width: 576px) {
        padding: 0;
    }
}



.m-about {
    display: grid;
    row-gap: 1rem;
    padding-top: 1rem !important;
}

.template-content
.module {
    padding-right: 0;
    padding-left: 0;
    @media (max-width: 576px) {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}



/* Player: fixed horizontal box, vertical videos letterboxed with black bars. */
.video-player,
.video-player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    background: #000;
    overflow: hidden;
    @media (max-width: 576px) {
        border-radius: 0.5rem;
    }
}

.video-player .plyr,
.video-player video {
    width: 100%;
    height: 100%;
}

.video-player .plyr video {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.video-player-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.video-player-play img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.85;
}

.video-player-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.video-player-play:hover .video-player-play-icon {
    background: var(--bs-primary, #0d6efd);
}

.video-page-vip {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    background: #111;
    overflow: hidden;
}

.video-page-vip-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

/* Exclusive pack/single-photo content -- blurred on top of the existing dim,
   so the preview genuinely hides the image instead of just darkening it. */
.video-page-vip-bg-blur {
    filter: blur(20px);
    transform: scale(1.1);
}

.video-page-vip-overlay {
    position: absolute;
    inset: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
}


/* Actor / author profile pages */
.m-video-profile-header {
    text-align: center;
}
.m-video-grid {
    /*margin-top: 1rem;*/
}

.video-profile-photo {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.video-profile-name {
    margin-bottom: 0.5rem;
}

.video-profile-description {
    max-width: 60ch;
    margin: 0 auto 1rem;
    color: var(--bs-secondary-color, #6c757d);
}

.video-profile-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--bs-secondary-color, #6c757d);
}

.video-page-about {
    display: flex;
    justify-content: space-between;
    align-items: center;
        display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.video-page-actions {
    display: flex;
    /*flex-wrap: wrap;*/
    align-items: center;
    gap: 0.75rem;
        flex-shrink: 0;
    margin: 1rem 0;
}
.video-page-actions .btn-group {
    display: flex;
    flex-wrap: nowrap;
}
.video-page-actions .btn {
    border-radius: 2rem;
    font-size: .875rem;
    font-weight: 600;
    /*display: flex;*/
    background-color: var(--bs-gray-200);
}

.video-page-actions .btn span {
    @media (max-width: 768px) {
        display: none;
    }
}

.video-page-actions .active {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}


/* Expandable details block */
.video-page-details {
    background: var(--bs-gray-200, #f8f9fa);
    border-radius: 0.5rem;
    padding: 0.9rem 1.1rem;
    /*margin-top: 1rem;*/
    cursor: pointer;
}

.video-page-details-preview {
    /*white-space: pre-line;*/
}

.video-page-details-empty {
    color: var(--bs-secondary-color, #6c757d);
}

.video-page-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 0.6rem;
}

/* Like/unlike counts, repeated here for small screens where the action
   buttons are cramped -- hidden by default, shown only under the same
   576px cutoff the rest of the video page collapses at. */
.video-page-reactions {
    display: none;
    gap: 0.75rem;
}

@media (max-width: 576px) {
    .video-page-reactions {
        display: inline-flex;
    }
}

.video-page-details-full .video-page-description {
    white-space: pre-line;
    margin: 0 0 0.75rem;
}


/* Author */
.video-page-author {
    /*margin-top: 1rem;*/
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 2rem;
}

.author-picture {
    background-position: center;
    background-size: cover;
    border-color: #fff;
    border-radius: 50%;
    border-style: solid;
    border-width: 2px;
    /*box-shadow: 3px 3px 5px #6c757d;*/
    height: 3.25rem ;
    width: 3.25rem ;
    object-fit: cover;
}

.author-name {
    font-size: .938rem;
    font-weight: 600;
    margin-left: .75rem;

    @media (max-width: 768px) {
        /*display: none;*/
        max-width: 70px;
    }
}


/* Participants (actors) */
.video-page-actors {
    /*padding-top: 1.5rem;*/
    /*padding-bottom: 1.5rem;*/
}

.video-page-summary {
    margin: 0 0 0.75rem;
}

.video-page-summary p {
    margin: 0;
    color: var(--bs-secondary-color, #6c757d);
}

h2 {
    font-size: 1.1rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 600 !important;
}

@media (max-width: 576px)
{
    .template-person .module,
    .template-atores .module,
    .template-results .module,
    .template-categories .module {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .template-home main .m-actors-carousel,
    .template-home main .m-content-filters {
        padding-right: 0;
    }
}

.template-home h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    /*font-weight: 600;*/
}

@media (max-width: 768px)
{
    .template-home h1 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        /*font-weight: 600;*/
    }
}

@media (min-width: 576px)
{
    .template-home .video-page-actors-row {
        padding: 0 2rem !important;
    }
}

.video-page-actors-row {
    display: flex;
    overflow-x: auto;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
    padding: 0;
    margin: 0;
}

.video-page-actor-item a {
    text-decoration: none;
}

.profile-container {
    padding: .188rem;
    background-image: linear-gradient(to bottom left, var(--bs-primary), var(--bs-secondary));
    border-radius: 99999px;
    overflow: hidden;
}

.video-page-actor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
    width: max-content;
    text-align: center;
}

.video-page-actor-item img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    width: 75px;
    height: 75px;
}

.video-page-actor-item span {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

.video-page-description {
    white-space: pre-line;
    margin: 0.75rem 0;
}

.video-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.m-content-page-comments {
    /*border-top: 1px solid var(--bs-border-color, #dee2e6);*/
    /*padding-top: 1.5rem;*/
    /*margin-top: 1.5rem;*/
}

.m-content-page-comments form textarea {
    field-sizing: content;
    resize: none;
    padding: 0;
    max-height: 150px;
    border-radius: 0;
    border: none;
    border-bottom: 2px var(--bs-body-color) solid;
    box-shadow: none !important;
}

.m-content-page-comments .form-row {
    flex: 1;
}

.m-content-page-comments form {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.m-content-page-comments form .btn {
    align-self: flex-end;
}

.content-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.content-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    padding: 0.75rem 0;
}

.content-comment:last-child {
    border-bottom: none;
}

.content-comment-body {
    flex: 1;
    min-width: 0;
}

.content-comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-comment-report {
    margin-left: auto;
    border: none;
    background: none;
    padding: 0.25rem;
    color: var(--bs-secondary-color, #6c757d);
    cursor: pointer;
}

.content-comment-report:hover {
    color: var(--bs-danger, #dc3545);
}

.m-content-page-sidebar h2 {
    font-size: ;
}



/* Search results
   -------------------------------------------------------------------------- */
.video-results-subtitle {
    margin: 1.5rem 0 1rem;
}


/* Load more
   -------------------------------------------------------------------------- */
.videos-load-more-anchor {
    height: 1px;
}

.videos-load-more-spinner {
    text-align: center;
    padding: 1.5rem 0;
}

/*.m-videos-actors,*/
.m-videos-related {
    /*padding-: 2.5rem;*/
}



.m-comments {
    margin: 0;
}
.m-header {
    margin-bottom: 0 !important;
}

.pack-page {
    max-width: 900px;
}

.pack-media-grid {
    row-gap: 1rem;
    margin-bottom: 0.5rem;

    @media (max-width: 768px)
    {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

.pack-media-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.pack-media-item img,
.pack-media-item video {
    border-radius: 1rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pack-media-play {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 1.6rem;
    pointer-events: none;
}

.pack-photo-ad {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.pack-photo-ad .ad-slot {
    width: 100%;
}

/* Pack of 1 (photo or video) -- blurred backdrop fill instead of a grid
   tile, since there's only the one item. */
.pack-photo-single {
    position: relative;
    display: block;
    height: 80vh;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.pack-photo-single-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
}

.pack-photo-single-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Content lightbox -- click a pack-media-item to view/zoom it full-size.
   -------------------------------------------------------------------------- */
body.content-lightbox-open {
    overflow: hidden;
}

.content-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

/* Prev/next -- only shown when the lightbox opened with more than one item
   in its group (a pack's media grid); a single photo gets neither. */
.content-lightbox-nav {
    position: absolute;
    bottom: 5%;
    /*transform: translateY(50%);*/
    z-index: 1;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.content-lightbox-prev {
    left: 1rem;
}

.content-lightbox-next {
    right: 1rem;
}

.content-lightbox-counter {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.content-lightbox-stage {
    max-width: 60vh;
    max-width: 90vw;
    max-height: 80%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.content-lightbox-media {
    max-width: 100%;
    max-height: 90vh;
}

img.content-lightbox-media {
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    transform: scale(1);
    transform-origin: center center;
}

img.content-lightbox-media.is-zoomed {
    cursor: zoom-out;
}

[data-bs-theme="dark"]
{
    .content-filter-chip {
        border-color: #fff;
    }
    .video-page-details {
        background-color: var(--bs-gray-800);
    }
    .video-page-actions .btn {
        background-color: var(--bs-gray-800);
    }
}

.template-home .navtabs_underline_full_size,
.template-results .navtabs_underline_full_size {
    margin-bottom: 0 !important;
}

/* Page links of the paginated listings (src/pagination.php): centred under the grid, which the infinite scroll keeps growing above them. */
.videos-pagination {
    display: flex;
    justify-content: center;
    padding-block: 2rem;
}
