/* ============================================================
   Rainbow Star Content Planner – Public CSS v3.9
   Autor: Dariusz Staropiętka
   ============================================================ */

.content_planner_yt {
	width: 100%;
	box-sizing: border-box;
}
.content_planner_yt-content { width: 100%; }

/* ── Columns layout ──────────────────────────────────────────── */
.content_planner_yt-columns {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

/* 16:9 → 50/50 */
.rscp-ratio-16-9 .content_planner_yt-video {
	flex: 1 1 calc(50% - 10px);
	max-width: calc(50% - 10px);
	min-width: 0;
}
.rscp-ratio-16-9 .content_planner_yt-description {
	flex: 1 1 calc(50% - 10px);
	min-width: 0;
}

/* 1:1 → lewa = width z panelu, prawa reszta */
.rscp-ratio-1-1 .content_planner_yt-video {
	flex: 0 0 auto;
	min-width: 0;
}
.rscp-ratio-1-1 .content_planner_yt-description {
	flex: 1 1 0;
	min-width: 0;
}

/* ── Equal height – prawa kolumna wyrównana do lewej ─────────── */
.rscp-equal-height {
	align-items: stretch;
}
.rscp-equal-height .content_planner_yt-description {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

/* ── Embed wrapper ───────────────────────────────────────────── */
.rscp-embed-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #000;
	height: 0;
}
.rscp-embed-wrapper iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	border: 0;
}

/* ── Video column ────────────────────────────────────────────── */
.content_planner_yt-video {
	overflow: hidden;
}

/* ── Description column base (bez tła – inline z PHP) ───────── */
.content_planner_yt-description {
	box-sizing: border-box;
	line-height: 1.6;
}
.content_planner_yt-description .rscp-desc-logo {
	height: 90px;
	width: auto;
	max-width: 100%;
	margin-bottom: 15px;
	margin-left: 0;
	margin-right: auto;
	display: block;
	object-fit: contain;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {

	.content_planner_yt-columns {
		flex-direction: column !important;
	}

	.rscp-ratio-16-9 .content_planner_yt-video,
	.rscp-ratio-16-9 .content_planner_yt-description,
	.rscp-ratio-1-1  .content_planner_yt-video,
	.rscp-ratio-1-1  .content_planner_yt-description {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.content_planner_yt-video {
		width: 100% !important;
		max-width: 100% !important;
		display: block;
	}

	.content_planner_yt-description .rscp-desc-logo {
		height: auto !important;
		width: 100% !important;
	}
}

/* ── Banner ──────────────────────────────────────────────────── */
.rscp-banner { display: block; line-height: 0; }
.rscp-banner img { max-width: 100%; height: auto; display: block; }
.rscp-banner a { display: block; line-height: 0; }

/* ── Nav arrows ──────────────────────────────────────────────── */
.rscp-embed-wrapper { position: relative; }
.rscp-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(0,0,0,0.55);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s, background .2s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	user-select: none;
}
.rscp-nav-prev { left: 10px; }
.rscp-nav-next { right: 10px; }
.rscp-nav-prev::before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-right: 12px solid #fff;
	margin-right: 2px;
}
.rscp-nav-next::before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 12px solid #fff;
	margin-left: 2px;
}
.rscp-embed-wrapper:hover .rscp-nav { opacity: 1; }
.rscp-nav:hover { background: rgba(0,0,0,0.85); }

@media (max-width: 768px) {
	.rscp-nav {
		opacity: 0.8;
		width: 36px;
		height: 36px;
	}
	.rscp-nav-prev::before {
		border-right-width: 10px;
		border-top-width: 6px;
		border-bottom-width: 6px;
	}
	.rscp-nav-next::before {
		border-left-width: 10px;
		border-top-width: 6px;
		border-bottom-width: 6px;
	}
	.rscp-desc-logo {
		width: 100% !important;
		height: auto !important;
	}
}

/* ── Mixcloud ────────────────────────────────────────────────── */
.rscp-mixcloud {
	width: 100%;
	box-sizing: border-box;
}

/* ── Mixcloud item – zero odstępów, zero scrollbara ─────────── */
.rscp-mc-item {
	overflow: hidden;
	line-height: 0;
	font-size: 0;
	/* blokuje wewnętrzny scrollbar iframe */
	max-height: 120px;
}
.rscp-mc-item--mini {
	max-height: 60px;
}
.rscp-mc-item:last-child {
	margin-bottom: 0;
}
.rscp-mc-item iframe {
	display: block;
	overflow: hidden;
	/* wymuś dokładną wysokość — bez scrollbara */
	max-height: 120px;
}
.rscp-mc-item--mini iframe {
	max-height: 60px;
}

/* ── Mixcloud iframe ─────────────────────────────────────────── */
.rscp-mc-iframe {
	display: block;
	border: 0;
	overflow: hidden;
}

/* placeholder szary prostokąt przed załadowaniem iframea */
.rscp-mc-iframe[data-src] {
	background: #1a1a1a;
}

/* wysokość placeholdera odpowiada docelowej wysokości iframea */
.rscp-mc-iframe[data-src][height="120"] { min-height: 120px; }
.rscp-mc-iframe[data-src][height="60"]  { min-height: 60px;  }

/* ── Mixcloud logo light/dark swap ───────────────────────────── */
.rscp-mc-logo {
	display: block;
	max-width: 100%;
	height: auto;
}

/* domyślnie: logo light widoczne, logo dark ukryte.
   JS (logoSync) odwraca to gdy data-theme="dark" na body. */
.rscp-mc-logo--light { display: block; }
.rscp-mc-logo--dark  { display: none;  }

/* ══════════════════════════════════════════════════════════════
   Bannery v2 – public
   ══════════════════════════════════════════════════════════════ */

.rscp-banner-wrap {
	width: 100%;
	box-sizing: border-box;
	line-height: 0;
}

.rscp-banner-img {
	display: block;
	width: 100%;
	height: auto;
}

.rscp-banner-wrap a {
	display: block;
	line-height: 0;
}

.rscp-splide .splide__slide {
	line-height: 0;
}

.rscp-splide .splide__slide img {
	display: block;
	width: 100%;
	height: auto;
}

.rscp-splide .splide__slide a {
	display: block;
	line-height: 0;
}

/* Strzałki — delikatne, widoczne tylko na hover */
.rscp-banner-wrap--slider .splide__arrow {
	background: rgba(0, 0, 0, 0.25);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	opacity: 0;
	transition: opacity .25s, background .2s;
}

.rscp-banner-wrap--slider:hover .splide__arrow {
	opacity: 1;
}

.rscp-banner-wrap--slider .splide__arrow:hover {
	background: rgba(0, 0, 0, 0.55);
}

.rscp-banner-wrap--slider .splide__arrow svg {
	fill: #fff;
	width: 13px;
	height: 13px;
}

/* Kropki */
.rscp-splide .splide__pagination {
	bottom: 8px;
}

.rscp-splide .splide__pagination__page {
	background: rgba(255, 255, 255, 0.5);
	border: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	margin: 0 3px;
	opacity: 1;
	transition: background .2s, transform .2s;
}

.rscp-splide .splide__pagination__page.is-active {
	background: #fff;
	transform: scale(1.35);
}

/* HTML banner */
.rscp-banner-wrap--html {
	line-height: normal;
}