.episode-content-protection {
    position: relative;
    isolation: isolate;
    -webkit-touch-callout: none;
}

.episode-content-protection__body {
    position: relative;
    z-index: 0;
    -webkit-user-select: none;
    user-select: none;
}

.episode-content-watermark {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 160px;
    overflow: hidden;
    color: rgba(108, 117, 125, 0.16);
    pointer-events: none;
    user-select: none;
}

.episode-content-watermark__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transform: rotate(-24deg);
}

.episode-content-protection-notice {
    position: fixed;
    z-index: 1080;
    right: 1rem;
    bottom: 1rem;
    max-width: min(360px, calc(100vw - 2rem));
    padding: 0.75rem 1rem;
    border-radius: var(--bs-border-radius);
    background-color: rgba(33, 37, 41, 0.94);
    color: #ffffff;
    box-shadow: var(--bs-box-shadow);
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.episode-content-protection-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.episode-content-print-notice {
    display: none;
}

@media (max-width: 575.98px) {
    .episode-content-watermark {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 140px;
    }

    .episode-content-protection-notice {
        right: 0.75rem;
        bottom: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .episode-content-protection-notice {
        transition: none;
    }
}

@media print {
    .episode-content-protection__body,
    .episode-content-watermark {
        display: none !important;
    }

    .episode-content-print-notice {
        display: block;
        padding: 2rem;
        border: 1px solid #212529;
        text-align: center;
    }

    .episode-content-protection-notice {
        display: none !important;
    }
}
