/* Pray with the Pope - Player Styles */

.pwtp-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.pwtp-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.pwtp-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.pwtp-poster:hover {
    transform: scale(1.02);
}

.pwtp-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    transition: background 0.3s ease;
}

.pwtp-poster:hover::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.pwtp-play-button {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.pwtp-play-button:hover {
    transform: scale(1.1);
}

.pwtp-play-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 5px;
    border-radius: 50%;
}

.pwtp-play-button svg {
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.pwtp-play-button svg circle,
.pwtp-play-button svg path {
    transition: all 0.3s ease;
}

.pwtp-play-button:hover svg circle {
    stroke-width: 4;
}

.pwtp-play-button:hover svg path {
    fill: rgba(255, 255, 255, 0.95);
}

.pwtp-language-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    padding: 10px 20px;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: right;
}

.pwtp-language-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.pwtp-toggle-text {
    font-size: 12px;
}

.pwtp-toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pwtp-language-toggle.active .pwtp-toggle-icon {
    transform: rotate(90deg);
}

.pwtp-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pwtp-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pwtp-language-bar {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pwtp-language-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.pwtp-language-selector.show {
    max-height: 500px;
    padding: 20px;
}

.pwtp-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.pwtp-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.pwtp-lang-btn.active {
    background: #fff;
    color: #1a1a1a;
    border-color: #fff;
    font-weight: 500;
}

.pwtp-lang-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .pwtp-language-selector {
        padding: 12px 16px;
    }
    
    .pwtp-language-toggle {
        padding: 8px 16px;
    }
    
    .pwtp-toggle-text {
        font-size: 11px;
    }
    
    .pwtp-toggle-icon {
        width: 14px;
        height: 14px;
    }
    
    .pwtp-lang-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .pwtp-play-button {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .pwtp-language-selector {
        gap: 8px;
    }
    
    .pwtp-lang-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}
