.watching-receipt-ready .pp-offcanvas-content-nmvspoiler0,
.watching-receipt-ready .pp-offcanvas-content-ntvspoiler0 {
	display: none !important;
}

.watching-spoiler-receipt-layer[hidden] {
	display: none;
}

.watching-spoiler-receipt-layer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	font-family: "Geist Mono", monospace;
	font-size: 12px;
	line-height: 1.65;
}

.watching-spoiler-receipt-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.72);
	opacity: 0;
}

.watching-spoiler-receipt-layer.is-open .watching-spoiler-receipt-backdrop {
	animation: watching-receipt-fade 300ms both;
}

.watching-spoiler-receipt-layer.is-ripping .watching-spoiler-receipt-backdrop {
	animation: watching-receipt-fade-out 300ms 850ms both;
}

.watching-spoiler-receipt-wrap {
	position: absolute;
	top: 0;
	right: 72px;
	display: flex;
	width: 370px;
	max-height: 100dvh;
	flex-direction: column;
}

.watching-spoiler-receipt-slot {
	position: relative;
	z-index: 3;
	height: 3px;
	flex: none;
	background: #404040;
}

.watching-spoiler-receipt-layer.is-ripping .watching-spoiler-receipt-slot {
	animation: watching-receipt-slot-out 200ms 850ms ease both;
}

.watching-spoiler-receipt-clip {
	min-height: 0;
	overflow: hidden;
}

.watching-spoiler-receipt-clip.is-done {
	overflow-y: auto;
	overscroll-behavior: contain;
}

.watching-spoiler-receipt-layer.is-ripping .watching-spoiler-receipt-clip {
	overflow: visible;
}

.watching-spoiler-receipt-print {
	transform: translateY(0);
}

.watching-spoiler-receipt-layer.is-open:not(.is-ripping) .watching-spoiler-receipt-print {
	animation: watching-receipt-print 1.4s steps(22, end) both;
}

.watching-spoiler-receipt-stub,
.watching-spoiler-receipt-lower {
	position: relative;
	background: #fafafa;
	color: #0a0a0a;
}

.watching-spoiler-receipt-stub {
	z-index: 2;
	padding: 24px 26px 12px;
}

.watching-spoiler-receipt-lower {
	z-index: 1;
	margin-top: -9px;
	padding: 22px 26px 28px;
	border-bottom: 2px dashed #a3a3a3;
	clip-path: polygon(0 9px, 2.5% 0, 5% 9px, 7.5% 0, 10% 9px, 12.5% 0, 15% 9px, 17.5% 0, 20% 9px, 22.5% 0, 25% 9px, 27.5% 0, 30% 9px, 32.5% 0, 35% 9px, 37.5% 0, 40% 9px, 42.5% 0, 45% 9px, 47.5% 0, 50% 9px, 52.5% 0, 55% 9px, 57.5% 0, 60% 9px, 62.5% 0, 65% 9px, 67.5% 0, 70% 9px, 72.5% 0, 75% 9px, 77.5% 0, 80% 9px, 82.5% 0, 85% 9px, 87.5% 0, 90% 9px, 92.5% 0, 95% 9px, 97.5% 0, 100% 9px, 100% 100%, 0 100%);
}

.watching-spoiler-receipt-layer.is-ripping .watching-spoiler-receipt-stub {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 97.5% calc(100% - 9px), 95% 100%, 92.5% calc(100% - 9px), 90% 100%, 87.5% calc(100% - 9px), 85% 100%, 82.5% calc(100% - 9px), 80% 100%, 77.5% calc(100% - 9px), 75% 100%, 72.5% calc(100% - 9px), 70% 100%, 67.5% calc(100% - 9px), 65% 100%, 62.5% calc(100% - 9px), 60% 100%, 57.5% calc(100% - 9px), 55% 100%, 52.5% calc(100% - 9px), 50% 100%, 47.5% calc(100% - 9px), 45% 100%, 42.5% calc(100% - 9px), 40% 100%, 37.5% calc(100% - 9px), 35% 100%, 32.5% calc(100% - 9px), 30% 100%, 27.5% calc(100% - 9px), 25% 100%, 22.5% calc(100% - 9px), 20% 100%, 17.5% calc(100% - 9px), 15% 100%, 12.5% calc(100% - 9px), 10% 100%, 7.5% calc(100% - 9px), 5% 100%, 2.5% calc(100% - 9px), 0 100%);
	animation: watching-receipt-stub-retract 400ms 600ms ease-in both;
}

.watching-spoiler-receipt-layer.is-ripping .watching-spoiler-receipt-lower {
	animation: var(--watching-receipt-rip-fall) both;
}

.watching-spoiler-receipt-row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.watching-spoiler-receipt-row-top {
	align-items: flex-start;
	letter-spacing: 0.1em;
}

.watching-spoiler-receipt-track {
	letter-spacing: 0.1em;
}

.watching-spoiler-receipt-small {
	font-size: 11px;
}

.watching-spoiler-receipt-rule {
	margin: 12px 0;
	border-top: 1px dashed #a3a3a3;
}

.watching-spoiler-receipt-perforation {
	margin-bottom: 0;
}

.watching-spoiler-receipt-title {
	display: inline-block;
	padding: 2px 8px;
	background: #0a0a0a;
	color: #fafafa;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.watching-spoiler-receipt-genres {
	margin-top: 6px;
}

.watching-spoiler-receipt-close {
	-webkit-appearance: none;
	appearance: none;
	padding: 0 0 0 12px;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	outline: 0;
	background: transparent !important;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.watching-spoiler-receipt-close:hover,
.watching-spoiler-receipt-close:focus,
.watching-spoiler-receipt-close:focus-visible,
.watching-spoiler-receipt-close:active {
	border: 0 !important;
	box-shadow: none !important;
	outline: 0;
	background: transparent !important;
	text-decoration: none !important;
}

.watching-spoiler-receipt-body,
.watching-spoiler-receipt-body p {
	margin: 0;
	font: inherit;
	color: inherit;
}

.watching-spoiler-receipt-body p + p {
	margin-top: 12px;
}

.watching-spoiler-receipt-body a {
	color: inherit;
	text-decoration: underline;
}

.watching-spoiler-receipt-record {
	margin-top: 14px;
}

.watching-spoiler-receipt-barcode {
	height: 34px;
	margin: 8px 0 4px;
	background: repeating-linear-gradient(90deg, #0a0a0a 0 2px, transparent 2px 5px, #0a0a0a 5px 6px, transparent 6px 10px, #0a0a0a 10px 13px, transparent 13px 15px, #0a0a0a 15px 16px, transparent 16px 19px);
}

.watching-spoiler-receipt-barcode-number {
	text-align: center;
	font-size: 11px;
	letter-spacing: 0.2em;
}

.watching-spoiler-receipt-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
}

.watching-spoiler-receipt-badge {
	padding: 2px 10px;
	background: #0a0a0a;
	color: #fafafa;
	letter-spacing: 0.12em;
}

.watching-spoiler-receipt-retain {
	margin-top: 12px;
}

body.watching-spoiler-receipt-open {
	overflow: hidden;
}

@keyframes watching-receipt-print {
	from { transform: translateY(-101%); }
	to { transform: translateY(0); }
}

@keyframes watching-receipt-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes watching-receipt-fade-out {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes watching-receipt-slot-out {
	to { opacity: 0; }
}

@keyframes watching-receipt-stub-retract {
	to { transform: translateY(-105%); }
}

@keyframes watching-receipt-rip-left-soft {
	to { transform: translate(-90px, 105vh) rotate(-24deg); }
}

@keyframes watching-receipt-rip-right-soft {
	to { transform: translate(90px, 105vh) rotate(26deg); }
}

@keyframes watching-receipt-rip-left-wide {
	to { transform: translate(-150px, 105vh) rotate(-42deg); }
}

@keyframes watching-receipt-rip-left-tight {
	to { transform: translate(-40px, 105vh) rotate(-33deg); }
}

@keyframes watching-receipt-rip-right-wide {
	to { transform: translate(150px, 105vh) rotate(38deg); }
}

@media (max-width: 640px) {
	.watching-spoiler-receipt-wrap {
		right: 50%;
		width: min(calc(100vw - 32px), 400px);
		height: 100dvh;
		transform: translateX(50%);
	}

	.watching-spoiler-receipt-clip {
		flex: 1;
		overflow-y: auto;
	}

	.watching-spoiler-receipt-stub,
	.watching-spoiler-receipt-lower {
		font-size: 13px;
	}

	.watching-spoiler-receipt-stub {
		padding: 28px 24px 12px;
	}

	.watching-spoiler-receipt-lower {
		padding: 22px 24px 40px;
	}

	.watching-spoiler-receipt-layer.is-open:not(.is-ripping) .watching-spoiler-receipt-print {
		animation-duration: 1.6s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.watching-spoiler-receipt-layer.is-open .watching-spoiler-receipt-backdrop,
	.watching-spoiler-receipt-layer.is-open .watching-spoiler-receipt-print,
	.watching-spoiler-receipt-layer.is-ripping .watching-spoiler-receipt-slot,
	.watching-spoiler-receipt-layer.is-ripping .watching-spoiler-receipt-stub,
	.watching-spoiler-receipt-layer.is-ripping .watching-spoiler-receipt-lower {
		animation-duration: 1ms;
		animation-delay: 0ms;
		animation-iteration-count: 1;
	}
}
