.youtube-pro-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
    color: #1d2327;
}

.youtube-pro-launcher {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 0;
    background: #000;
}

.youtube-pro-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-pro-launcher:hover .youtube-pro-thumbnail {
    transform: scale(1.04);
}

.youtube-pro-launcher:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}

.youtube-pro-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.68);
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.youtube-pro-launcher:hover .youtube-pro-play-icon {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.05);
}

.youtube-pro-play-icon::before {
    width: 0;
    height: 0;
    margin-left: 5px;
    content: '';
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 28px solid #fff;
}

.youtube-pro-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-pro-notice[hidden] {
    display: none !important;
}

.youtube-pro-notice {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    direction: rtl;
}

.youtube-pro-notice--viewport {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    overflow-y: auto;
}

.youtube-pro-modal-open,
.youtube-pro-modal-open body {
    overflow: hidden !important;
}

.youtube-pro-notice-box {
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    box-sizing: border-box;
    padding: 22px;
    overflow-y: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    text-align: right;
}

.youtube-pro-notice-title {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.youtube-pro-notice-title:focus {
    outline: none;
}

.youtube-pro-notice-box p {
    margin: 0 0 18px;
    line-height: 1.9;
}

.youtube-pro-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.youtube-pro-notice-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 88px;
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid #2271b1;
    border-radius: 5px;
    font: inherit;
}

.youtube-pro-open-youtube {
    color: #fff;
    border-color: #ff0033 !important;
    background: #ff0033;
}

.youtube-pro-action-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.youtube-pro-continue {
    color: #fff;
    border-color: #008a20 !important;
    background: #008a20;
}

.youtube-pro-cancel {
    color: #1d2327;
    border-color: #8c8f94 !important;
    background: #fff;
}

.youtube-pro-notice-actions button:focus-visible {
    outline: 3px solid #72aee6;
    outline-offset: 2px;
}

.youtube-pro-error {
    color: #b32d2e;
}

@media (max-width: 480px) {
    .youtube-pro-play-icon {
        width: 62px;
        height: 62px;
    }

    .youtube-pro-play-icon::before {
        border-top-width: 13px;
        border-bottom-width: 13px;
        border-left-width: 22px;
    }

    .youtube-pro-notice {
        align-items: flex-end;
        padding: 12px;
    }

    .youtube-pro-notice-box {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 20px 16px;
        border-radius: 14px;
    }

    .youtube-pro-notice-actions button {
        flex: 1 1 100%;
        min-height: 48px;
    }
}
