
.ppv-access-box {
    border: 1px solid #ddd;
    padding: 16px;
    margin-top: 16px;
    border-radius: 8px;
    background: #fafafa;
    direction: rtl;
    text-align: right;
}

.ppv-player-wrapper {
    margin-top: 12px;
    position: relative;
}

.ppv-my-tickets {
    direction: rtl;
    text-align: right;
}

.ppv-my-tickets table.ppv-table {
    width: 100%;
    border-collapse: collapse;
}

.ppv-my-tickets table.ppv-table th,
.ppv-my-tickets table.ppv-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    font-size: 13px;
}

.ppv-my-tickets table.ppv-table th {
    background: #f3f3f3;
    font-weight: 600;
}

/* Ad overlay */
.ppv-ad-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    direction: rtl;
}

.ppv-ad-overlay-inner {
    max-width: 960px;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    position: relative;
}

.ppv-ad-overlay video {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.ppv-ad-skip-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
}

.ppv-ad-click-layer {
    position: absolute;
    inset: 0;
    cursor: pointer;
}


/* Badges for content kind / age rating in My Tickets and elsewhere */
.ppv-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.6;
    margin: 0 2px;
    border: 1px solid rgba(0,0,0,0.08);
}

.ppv-badge-type {
    background-color: rgba(0, 128, 255, 0.08);
}

.ppv-badge-age {
    background-color: rgba(255, 165, 0, 0.1);
}


/* === Overlays: logos, banners, watermark on player === */
.ppv-player-wrapper {
    position: relative;
}

.ppv-overlays-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    display: block;
}

.ppv-logo-slot,
.ppv-banner-slot {
    position: absolute;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ppv-logo-item,
.ppv-banner-item,
.ppv-watermark {
    opacity: 0;
    transition: opacity 0.25s ease-out;
    pointer-events: auto;
}

.ppv-overlay-visible {
    opacity: 1 !important;
}

.ppv-logo-img {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
}

.ppv-banner-img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Logo positions (8 corners/edges) */
.ppv-logo-slot--top_left { top: 8px; left: 8px; }
.ppv-logo-slot--top_center { top: 8px; left: 50%; transform: translateX(-50%); }
.ppv-logo-slot--top_right { top: 8px; right: 8px; }

.ppv-logo-slot--middle_left { top: 50%; left: 8px; transform: translateY(-50%); flex-direction: column; }
.ppv-logo-slot--middle_right { top: 50%; right: 8px; transform: translateY(-50%); flex-direction: column; }

.ppv-logo-slot--bottom_left { bottom: 8px; left: 8px; }
.ppv-logo-slot--bottom_center { bottom: 8px; left: 50%; transform: translateX(-50%); }
.ppv-logo-slot--bottom_right { bottom: 8px; right: 8px; }

/* Banner zones (4 edges) */
.ppv-banner-slot--top {
    top: 0;
    left: 0;
    right: 0;
    justify-content: center;
}

.ppv-banner-slot--bottom {
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
}

.ppv-banner-slot--left {
    top: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
}

.ppv-banner-slot--right {
    top: 0;
    bottom: 0;
    right: 0;
    flex-direction: column;
    justify-content: center;
}

.ppv-banner-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 6px;
    border-radius: 4px;
}

/* Watermark text */
.ppv-watermark {
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 500;
}

.ppv-watermark--top_left { top: 8px; left: 8px; }
.ppv-watermark--top_center { top: 8px; left: 50%; transform: translateX(-50%); }
.ppv-watermark--top_right { top: 8px; right: 8px; }
.ppv-watermark--middle_left { top: 50%; left: 8px; transform: translateY(-50%); }
.ppv-watermark--middle_right { top: 50%; right: 8px; transform: translateY(-50%); }
.ppv-watermark--bottom_left { bottom: 8px; left: 8px; }
.ppv-watermark--bottom_center { bottom: 8px; left: 50%; transform: translateX(-50%); }
.ppv-watermark--bottom_right { bottom: 8px; right: 8px; }

.ppv-watermark--float {
    animation: ppv-watermark-float 24s linear infinite alternate;
}

@keyframes ppv-watermark-float {
    0%   { transform: translate(-10%, -10%); }
    50%  { transform: translate(10%, 5%); }
    100% { transform: translate(-5%, 10%); }
}

