/* AdultEmbed Connect — frontend styles */

/* ── Grid ── */
.pz-grid-wrap { width: 100%; }

.pz-grid {
    display: grid;
    gap: 16px;
    margin: 0 0 20px;
}
.pz-cols-1 { grid-template-columns: 1fr; }
.pz-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pz-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pz-cols-4 { grid-template-columns: repeat(4, 1fr); }
.pz-cols-5 { grid-template-columns: repeat(5, 1fr); }
.pz-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
    .pz-cols-4, .pz-cols-5, .pz-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .pz-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
}
@media (max-width: 380px) {
    .pz-grid { grid-template-columns: 1fr !important; }
}

/* ── Card ── */
.pz-card {
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.pz-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.45); }

.pz-card-thumb-btn,
.pz-card-thumb-link,
.pz-card-thumb-wrap {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.pz-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}

.pz-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255,255,255,0);
    transition: color .15s;
    text-shadow: 0 0 12px rgba(0,0,0,.6);
}
.pz-card:hover .pz-play-icon { color: rgba(255,255,255,.85); }

.pz-card-duration {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: .7rem;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.pz-card-info { padding: 8px 10px 10px; }
.pz-card-title {
    margin: 0 0 4px;
    font-size: .82rem;
    line-height: 1.3;
    color: #eee;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pz-card-views { margin: 0; font-size: .72rem; color: #888; }

/* ── Pagination ── */
.pz-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 16px 0;
    flex-wrap: wrap;
}
.pz-page-btn {
    background: #222;
    color: #ddd;
    border: 1px solid #444;
    padding: 7px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: .85rem;
    transition: background .15s;
}
.pz-page-btn:hover { background: #333; }
.pz-page-info { font-size: .85rem; color: #888; }

/* ── Lightbox ── */
.pz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pz-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    cursor: pointer;
}
.pz-lightbox-box {
    position: relative;
    z-index: 1;
    width: min(92vw, 960px);
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.pz-lightbox-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    opacity: .7;
    transition: opacity .15s;
}
.pz-lightbox-close:hover { opacity: 1; }
.pz-lightbox-title {
    padding: 10px 44px 6px 14px;
    font-size: .9rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pz-lightbox-player { background: #000; }

/* ── Iframe wrapper (16:9) ── */
.pz-iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.pz-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Single video embed ── */
.pz-single-player { margin-bottom: 20px; }
.pz-player-container { position: relative; }

.pz-poster,
.pz-poster-single {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    background-color: #000;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}
.pz-play-btn,
.pz-play-btn-single {
    position: absolute;
    inset: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s;
}
.pz-play-btn svg,
.pz-play-btn-single svg { width: 80px; height: 80px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.pz-play-btn:hover svg,
.pz-play-btn-single:hover svg { transform: scale(1.08); }

.pz-duration {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: .75rem;
    padding: 3px 7px;
    border-radius: 3px;
    font-family: monospace;
}

.pz-embed-wrap { background: #000; border-radius: 6px; overflow: hidden; }
.pz-loading { color: #888; text-align: center; padding: 40px; font-size: .85rem; }

.pz-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
    font-size: .82rem;
    color: #888;
}
.pz-performers { color: #aaa; }

.pz-embed-title { font-weight: 600; margin: 8px 0 4px; }

/* ── Search widget ── */
.pz-search-widget { margin-bottom: 20px; }
.pz-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    background: #111;
    color: #eee;
    margin-bottom: 14px;
    outline: none;
    transition: border-color .15s;
}
.pz-search-input:focus { border-color: #666; }
.pz-search-status { color: #888; font-size: .82rem; min-height: 1.2em; }

/* ── Misc ── */
.pz-no-videos, .pz-error { color: #888; font-style: italic; padding: 16px 0; }

/* ── HD / Premium badge on direct-source cards ── */
.pz-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.4;
    pointer-events: none;
    z-index: 3;
}
.pz-badge--hd {
    background: linear-gradient(135deg, #e8a020, #c07010);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.pz-card-thumb--premium .pz-play-icon {
    color: #f0a030;
}
