/* =========================================================
REWARDTUBE - RESPONSIVE PAGED VIDEO GRID
========================================================= */

.video-section {
    width: 100%;
}

.video-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(var(--video-columns, 5), minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, auto) !important;
    gap: 14px 10px !important;
}

.video-card {
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #111;
    text-align: left;
    cursor: pointer;
}

.thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 5px;
    background: #e8e8e8;
}

.thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card:hover .thumb-wrap img {
    transform: scale(1.03);
    transition: transform .2s ease;
}

.video-title-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 5px;
}

.video-title-row .title {
    min-width: 0;
    flex: 1;
    font-size: 10px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-title-row .more {
    flex: 0 0 auto;
    font-size: 14px;
}

.meta {
    display: flex;
    gap: 3px;
    margin-top: 3px;
    color: #777;
    font-size: 8px;
}

.points {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    padding: 2px 4px;
    background: rgba(255,255,255,.92);
    color: #c00000;
    text-align: center;
    font-size: 8px;
    font-weight: 800;
}

.duration {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 4px;
    border-radius: 2px;
    background: rgba(0,0,0,.8);
    color: white;
    font-size: 8px;
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(192,0,0,.95);
    color: white;
    font-size: 11px;
    opacity: 0;
}

.video-card:hover .play-badge {
    opacity: 1;
}

/* =========================================================
FULL SCREEN VIDEO MODAL
========================================================= */

body:has(.modal-backdrop) {
    overflow: hidden !important;
    height: 100vh !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 30px 20px !important;
    background: rgba(0,0,0,.88) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    pointer-events: auto !important;
    touch-action: none !important;
    isolation: isolate !important;
}

.modal-box {
    position: relative !important;
    width: min(900px, 92vw) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #090909 !important;
    color: white !important;
    box-shadow: 0 25px 80px rgba(0,0,0,.8) !important;
    pointer-events: auto !important;
}

.modal-header {
    min-height: 52px !important;
    padding: 9px 12px 9px 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #111 !important;
}

.modal-header strong {
    display: block !important;
    max-width: 750px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.modal-eyebrow {
    display: block !important;
    color: #e00000;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
}

.close-button {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
    border: 0 !important;
    border-radius: 50% !important;
    background: #292929 !important;
    color: white !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.close-button:hover {
    background: #c00000 !important;
}

.close-button:disabled,
.close-button.is-locked {
    opacity: .35 !important;
    cursor: not-allowed !important;
}

.player-stage {
    position: relative !important;
    width: 100% !important;
    background: #000 !important;
}

.player {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 68vh !important;
    background: #000 !important;
}

.ad-stage .player {
    min-height: 330px !important;
    max-height: 65vh !important;
    object-fit: contain !important;
}

.lock-layer {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 30 !important;
    height: 72px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 8px 18px !important;
    background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.78), rgba(0,0,0,0)) !important;
    color: #fff !important;
    pointer-events: auto !important;
    cursor: wait !important;
    user-select: none !important;
}

.lock-pill {
    flex: 0 0 auto !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: #c00000 !important;
    color: #fff !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
}

.countdown {
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 25px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #fff !important;
}

.hint {
    flex: 0 1 auto !important;
    margin: 0 !important;
    max-width: 260px !important;
    color: #eee !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.countdown-track {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 3px !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.15) !important;
}

.countdown-fill {
    height: 100% !important;
    background: #c00000 !important;
    transition: width .25s linear !important;
}

.video-footer {
    position: relative !important;
    min-height: 64px !important;
    padding: 11px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    background: #111 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
}

.video-footer > div:first-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    padding-right: 5px !important;
}

.video-footer strong {
    display: block !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.video-footer span {
    display: block !important;
    margin-top: 4px !important;
    color: #999 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.video-footer .reward-pill {
    flex: 0 0 auto !important;
    min-width: 70px !important;
    padding: 7px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 5px !important;
    background: #c00000 !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(192,0,0,.25) !important;
}

.completion-summary-overlay {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483646 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(0,0,0,.94) !important;
    pointer-events: auto !important;
}

.completion-summary {
    position: relative !important;
    width: min(430px,90vw) !important;
    padding: 45px 30px 35px !important;
    border-radius: 8px !important;
    background: #050505 !important;
    color: #fff !important;
    text-align: center !important;
    box-shadow: 0 25px 80px rgba(0,0,0,.9) !important;
    border: 1px solid #242424 !important;
}

.completion-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #292929 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.completion-close:hover {
    background: #c00000 !important;
}

.completion-summary .success-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #c00000 !important;
    color: #fff !important;
    font-size: 30px !important;
    font-weight: 800 !important;
}

.completion-summary h3 {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
}

.completion-summary p {
    margin: 0 !important;
    color: #aaa !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.completion-summary .earned {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 18px !important;
    padding: 9px 14px !important;
    border-radius: 5px !important;
    background: #c00000 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

@media (max-width: 700px) {
    .video-grid {
        gap: 12px 8px !important;
    }

    .modal-backdrop {
        padding: 0 !important;
        align-items: flex-start !important;
    }

    .modal-box {
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 0;
        border-radius: 0 !important;
    }

    .player {
        max-height: 65vh !important;
    }

    .ad-stage .player {
        min-height: 240px !important;
    }

    .lock-layer {
        height: 62px !important;
        gap: 9px !important;
        padding: 7px 12px !important;
    }

    .lock-pill {
        font-size: 7px !important;
        padding: 4px 7px !important;
    }

    .countdown {
        font-size: 22px !important;
    }

    .hint {
        max-width: 180px !important;
        font-size: 9px !important;
    }

    .video-footer {
        min-height: 58px !important;
        padding: 9px 11px !important;
        gap: 9px !important;
    }

    .video-footer strong {
        font-size: 12px !important;
    }

    .video-footer span {
        font-size: 9px !important;
    }

    .video-footer .reward-pill {
        min-width: 62px !important;
        padding: 6px 8px !important;
        font-size: 10px !important;
    }
}


/* =========================================================
REWARDTUBE - RIGHT-SIDE PAGED FEED
========================================================= */

.feed-viewport {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
}

.feed-arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 50 !important;
    width: 38px !important;
    height: 38px !important;
    margin-top: -19px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.96) !important;
    color: #333 !important;
    box-shadow: 0 2px 9px rgba(0,0,0,.25) !important;
    cursor: pointer !important;
    display: grid !important;
    place-items: center !important;
    font-size: 29px !important;
    line-height: 1 !important;
    padding: 0 0 2px !important;
    transition: transform .18s ease, background .18s ease, color .18s ease !important;
}

.feed-arrow:hover {
    transform: scale(1.08) !important;
    background: #c00000 !important;
    color: #fff !important;
}

.feed-arrow-right { right: 5px !important; }
.feed-arrow-left { left: 5px !important; }

.page-enter-next {
    animation: rewardTubePageNext .46s cubic-bezier(.22,.75,.25,1) both !important;
}

.page-enter-previous {
    animation: rewardTubePagePrevious .46s cubic-bezier(.22,.75,.25,1) both !important;
}

@keyframes rewardTubePageNext {
    from { opacity: 0; transform: translate3d(46px,0,0); filter: blur(1.5px); }
    to { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
}

@keyframes rewardTubePagePrevious {
    from { opacity: 0; transform: translate3d(-46px,0,0); filter: blur(1.5px); }
    to { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
}

@media (max-width: 700px) {
    .feed-arrow {
        width: 32px !important;
        height: 32px !important;
        margin-top: -16px !important;
        font-size: 24px !important;
    }
    .feed-arrow-right { right: 2px !important; }
    .feed-arrow-left { left: 2px !important; }
}
