.rtp-nav {
	background: var(--surface);
	margin: var(--pad) 0 0;
}

.provider-rail {
	position: relative;
	display: flex;
	align-items: center;
	padding: 6px 42px;
	background: var(--surface);
}

.provider-bar {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	width: 100%;
	min-width: 0;
	padding: 4px 2px;
	cursor: grab;
}

.provider-bar.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.provider-bar.is-dragging img {
	pointer-events: none;
}

.provider-bar::-webkit-scrollbar {
	display: none;
}

.provider-bar button {
	flex: 0 0 calc((100% - (12px * 4)) / 5);
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
	transition: transform 0.18s ease, filter 0.18s ease;
	scroll-snap-align: start;
	filter: brightness(0.45) grayscale(0.4);
}

.provider-bar button.is-active {
	filter: none;
	transform: scale(1.03);
}

.provider-bar button:hover {
	transform: scale(1.06);
}

.provider-bar img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.prov-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	color: var(--black);
	font-size: 20px;
	cursor: pointer;
	z-index: 3;
	padding: 0;
	border-radius: 50%;
	-webkit-text-stroke: 1px currentColor;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.prov-arrow:hover:not(:disabled) {
	background: transparent;
	color: var(--orange);
}

.prov-arrow.prev {
	left: 2px;
}

.prov-arrow.next {
	right: 2px;
}

.prov-arrow:disabled {
	cursor: default;
	color: #bbb;
}

.rtp-title-sub {
	color: var(--black);
}

#rtpProvName {
	font-weight: bold;
	background-image: linear-gradient(var(--orange), var(--orange));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.rtp-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.rtp-empty {
	padding: 24px;
	text-align: center;
	font-size: 15px;
	color: var(--text);
	grid-column: 1 / -1;
}

.rtp-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #1e1f21;
	border: 1px solid #2a2b2e;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.rtp-thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #0e0f11;
}

.rtp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease, filter 0.25s ease;
}

.rtp-thumb:hover img {
	transform: scale(1.05);
	filter: brightness(0.55);
}

.rtp-thumb .hover-cta {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 2;
}

.rtp-thumb:hover .hover-cta {
	opacity: 1;
}

.rtp-thumb .hover-cta a {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--orange);
	color: var(--white);
	font-weight: bold;
	text-shadow: var(--ts);
	transition: background 0.18s ease, transform 0.18s ease;
}

.rtp-thumb .hover-cta a,
.rtp-thumb .hover-cta a:link,
.rtp-thumb .hover-cta a:visited {
	color: var(--white);
	-webkit-text-fill-color: var(--white);
}

.rtp-thumb .hover-cta a:hover,
.rtp-thumb .hover-cta a:focus,
.rtp-thumb .hover-cta a:active {
	background: var(--black);
	transform: scale(1.06);
	color: var(--white);
	-webkit-text-fill-color: var(--white);
}

.rtp-badge-new {
	position: absolute;
	left: 8px;
	top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px 4px 6px;
	border-radius: 6px;
	background: linear-gradient(var(--orange), #ff8a3d);
	color: var(--white);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.3px;
	text-shadow: var(--ts);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
	z-index: 3;
	pointer-events: none;
}

.rtp-badge-new i {
	font-size: 11px;
}

.rtp-name {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	text-align: center;
	font-weight: bold;
	font-size: 14px;
	text-transform: uppercase;
	padding: var(--gap) var(--pad) 0;
	color: var(--white);
	line-height: 1.2;
}

.rtp-meter {
	padding: 8px 12px 0;
}

.rtp-meter .bar {
	position: relative;
	height: 15px;
	border-radius: 10px;
	background: #2b2e33;
	overflow: hidden;
}

.rtp-meter .bar .fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	border-radius: 10px;
	transition: width 0.5s ease;
}

.rtp-meter .bar .fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		45deg,
		rgba(255, 255, 255, 0.13) 0 12px,
		transparent 12px 24px
	);
	animation: rtpStripes 1.6s linear infinite;
	mix-blend-mode: overlay;
}

@keyframes rtpStripes {
	to {
		background-position: 48px 0;
	}
}

.rtp-meter .pct {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #e7edf7;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

.rtp-actions {
	padding: 12px 12px 0;
}

.rtp-actions .btn-sim {
	width: 100%;
	border: 0;
	border-radius: 8px;
	background: #2f3246;
	color: var(--white);
	padding: 10px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.18s ease;
}

.rtp-actions .btn-sim:hover:not(:disabled) {
	filter: brightness(1.18);
}

.rtp-actions .btn-sim:disabled {
	opacity: 0.5;
	cursor: default;
}

.rtp-panel {
	padding: 12px;
}

.rtp-panel .time {
	text-align: center;
	color: #f5d442;
	font-weight: 800;
	font-size: 14px;
	margin-bottom: 6px;
}

.rtp-panel .pola-unavail {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ff4d4d;
	font-weight: 800;
	padding: 14px 0;
	text-align: center;
}

.pola-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	border-top: 1px dashed #2c2d31;
}

.pola-row:first-child {
	border-top: 0;
}

.pola-row .label {
	color: #e7e7e7;
	font-weight: 700;
	font-size: 13px;
}

.pola-row .chips {
	display: flex;
	gap: 8px;
	align-items: center;
}

.pola-row .dot {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: #b91c1c;
}

.pola-row .dot.on {
	background: #16a34a;
}

.play-cta-bottom {
	padding: 0 12px 12px;
}

.play-cta-bottom a {
	display: block;
	text-align: center;
	padding: 9px 12px;
	border-radius: 10px;
	text-shadow: var(--ts);
	color: var(--white);
	background: var(--orange);
	font-weight: bold;
	transition: background 0.18s ease, transform 0.18s ease;
}

.play-cta-bottom a,
.play-cta-bottom a:link,
.play-cta-bottom a:visited {
	color: var(--white);
	-webkit-text-fill-color: var(--white);
}

.play-cta-bottom a:hover,
.play-cta-bottom a:focus,
.play-cta-bottom a:active {
	background: var(--black);
	transform: scale(1.04);
	color: var(--white);
	-webkit-text-fill-color: var(--white);
}

.sim-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999;
	padding: 12px;
}

.sim-modal[aria-hidden="false"] {
	display: flex;
	z-index: 1000000;
}

.sim-modal[aria-hidden="false"]::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 0;
	pointer-events: none;
}

.sim-modal[aria-hidden="false"] > * {
	position: relative;
	z-index: 1;
}

.sim-modal input[type="number"]::-webkit-outer-spin-button,
.sim-modal input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sim-modal input[type="number"] {
	-moz-appearance: textfield;
}

.sim-dialog {
	width: min(720px, 92vw);
	background: #1f2021;
	color: var(--white);
	border: 1px solid #3a3a3a;
	padding: var(--pad);
	position: relative;
	max-height: 92vh;
	overflow-y: auto;
}

.sim-dialog h3 {
	margin: 0 0 var(--pad);
}

.sim-close {
	position: absolute;
	right: var(--pad);
	top: var(--pad);
	background: transparent;
	border: 0;
	color: #bbb;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	transition: color 0.18s ease;
}

.sim-close:hover {
	color: var(--orange);
}

.sim-toast {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
	width: max-content;
	height: max-content;
	background: #1f2021;
	color: var(--white);
	border: 1px solid #3a3a3a;
	padding: var(--pad);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	pointer-events: none;
	z-index: 20;
	max-width: min(420px, 92vw);
	text-align: center;
	font-size: 14px;
}

.sim-toast[data-show="1"] {
	display: block;
	pointer-events: auto;
}

.sim-form {
	display: flex;
	flex-direction: column;
	gap: var(--pad);
	margin-top: var(--pad);
}

.sim-form input {
	background: #2a2a2b;
	color: var(--white);
	border: 1px solid #444;
	padding: var(--pad);
	font-size: 14px;
}

.sim-form input:focus {
	outline: none;
	border-color: var(--orange);
}

.sim-form button {
	background: #2f3246;
	color: var(--white);
	-webkit-text-fill-color: var(--white);
	border: 0;
	padding: var(--pad);
	cursor: pointer;
	font-weight: bold;
	text-shadow: var(--ts);
	transition: background 0.18s ease;
}

.sim-form button:hover {
	background: var(--black);
}

.sim-kpi {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin: 14px 0 10px;
	font-size: 15px;
}

.sim-warn {
	color: #ffb74d;
	text-align: center;
	padding: 8px 0;
	font-weight: 700;
}

.sim-note {
	margin: var(--gap) 0;
	color: #cfcfcf;
}

.sim-chart-wrap {
	position: relative;
	width: 100%;
}

.sim-chart-wrap canvas {
	display: block;
	width: 100%;
}

.sim-meter {
	margin-top: 10px;
}

.sim-meter .sim-note:last-child {
	margin-bottom: 0;
}

.sim-meter .meter-bar {
	position: relative;
	height: 18px;
	background: #2a2a2b;
	overflow: hidden;
}

.sim-meter .meter-bar .fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	transition: width 0.6s ease;
}

.sim-meter .meter-bar .fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		45deg,
		rgba(255, 255, 255, 0.13) 0 12px,
		transparent 12px 24px
	);
	animation: rtpStripes 1.6s linear infinite;
	mix-blend-mode: overlay;
}

.sim-meter .meter-bar .pct-in {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-weight: 900;
	font-size: 12px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

@media (max-width: 768px) {
	.provider-rail {
		padding: 6px 34px;
	}
    
	.prov-arrow {
		width: 28px;
		height: 28px;
		font-size: 16px;
	}
    
    .provider-bar button {
		flex: 0 0 calc((100% - 12px) / 2);
	}
	
	.rtp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--pad);
	}

	.rtp-name {
		font-size: 12px;
		min-height: 36px;
	}

	.rtp-panel .time {
		font-size: 12px;
	}

	.pola-row .label {
		font-size: 11px;
	}

	.play-cta-bottom a {
		font-size: 13px;
	}

	.rtp-badge-new {
		font-size: 10px;
		padding: 3px 6px;
	}

	.sim-kpi {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		font-size: 14px;
	}

	#rtpRefresh {
		display: none;
	}

	body[data-page="rtp-slot"] .main-content {
		grid-template-columns: minmax(0, 1fr);
	}

	body[data-page="rtp-slot"] .article-body {
		min-width: 0;
	}
}