/* ========================================
   CHISTES PAGE STYLES
   BEM with .chistes- prefix
   ======================================== */

/* Video Player Container */
.chistes-player {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    position: relative;
}

.chistes-player__video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 90vh;
    background-color: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chistes-player__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
}

/* Placeholder/Loading State */
.chistes-player__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 2;
    pointer-events: none;
}

.chistes-player__placeholder.hidden {
    display: none;
}

/* CTA Buttons Container */
.chistes-player__cta-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

/* CTA Buttons */
.chistes-player__cta {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--accent);
    color: var(--white);
    border: 3px solid var(--accent);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 138, 61, 0.5);
    white-space: nowrap;
}

.chistes-player__cta:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 12px 40px rgba(255, 138, 61, 0.6);
}

.chistes-player__cta i {
    margin-right: 0.5rem;
}

.chistes-player__cta--secondary {
    background: var(--white);
    color: var(--txt);
    border-color: var(--txt);
    box-shadow: 0 8px 30px rgba(70, 62, 55, 0.3);
}

.chistes-player__cta--secondary:hover {
    background: var(--bg);
    border-color: var(--txt);
    box-shadow: 0 12px 40px rgba(70, 62, 55, 0.4);
}

/* All Watched Message */
.chistes-player__message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
    max-width: 90%;
}

.chistes-player__message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--txt);
}

.chistes-player__message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--txt);
}

.chistes-player__message a {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: all 0.3s ease;
}

.chistes-player__message a:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

/* Fade transitions */
.chistes-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chistes-fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Loading state */
.chistes-player--loading {
    pointer-events: none;
}

.chistes-player__loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: chistes-spinner 0.8s linear infinite;
}

@keyframes chistes-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .chistes-player__video-wrapper {
        border-radius: var(--radius-md);
    }

    .chistes-player__cta-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .chistes-player__cta {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .chistes-player__loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 5px;
    }

    .chistes-player__message {
        padding: 1.5rem 2rem;
    }

    .chistes-player__message h3 {
        font-size: 1.3rem;
    }

    .chistes-player__message p {
        font-size: 1rem;
    }
}
