/**
 * youonTV Reels - Frontend Player Styles
 */

.youon-reel-player-container {
    max-width: 500px;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.youon-reel-player {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}

.youon-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stack Indicator */
.youon-stack-indicator {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #00D9FF;
    animation: pulse 2s infinite;
    z-index: 10;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.6));
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.1);
    }
}

.in-stack-mode .youon-stack-indicator {
    display: none;
}

/* Video Controls */
.youon-reel-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.youon-play-pause-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.youon-play-pause-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Story Choices */
.youon-story-choices {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    justify-content: space-around;
    gap: 20px;
    z-index: 20;
}

.youon-choice-btn {
    flex: 1;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    border: 3px solid #CCFF00;
    background: rgba(0, 0, 0, 0.7);
    color: #CCFF00;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.youon-choice-btn:hover {
    background: #CCFF00;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.6);
}

.youon-choice-btn::before {
    content: '←';
    position: absolute;
    left: 10px;
    font-size: 24px;
}

.youon-choice-btn.youon-choice-right::before {
    content: '→';
    left: auto;
    right: 10px;
}

.story-choice-active .youon-reel-video {
    filter: brightness(0.5);
}

/* Reel Info */
.youon-reel-info {
    padding: 20px;
    background: #1a1a1a;
    color: #fff;
}

.youon-reel-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #00D9FF;
}

.youon-reel-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

/* Stack Mode Indicator */
.in-stack-mode::after {
    content: 'STACK MODE';
    position: absolute;
    top: 20px;
    left: 20px;
    background: #00D9FF;
    color: #000;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    z-index: 15;
}

/* Responsive */
@media (max-width: 768px) {
    .youon-reel-player-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .youon-choice-btn {
        font-size: 16px;
        padding: 15px;
    }
}
