/* YouTube Circles Gallery 2.2 — player „RS TV” */
html.ycg-tv-open, html.ycg-tv-open body { overflow: hidden !important; }
.ycg-tv { position: fixed; inset: 0; z-index: 2147483100; font-family: inherit; color: #fff; }
.ycg-tv[hidden] { display: none !important; }
.ycg-tv * { box-sizing: border-box; }
.ycg-tv__bg {
	position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease;
	background: radial-gradient(1200px 600px at 20% 0%, rgba(252,1,109,.35), transparent 60%),
	            radial-gradient(900px 600px at 100% 100%, rgba(132,1,252,.35), transparent 60%), rgba(8,8,14,.97);
}
.ycg-tv__frame {
	position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px 26px 22px;
	opacity: 0; transform: scale(.985); transition: opacity .3s ease, transform .3s ease;
}
.ycg-tv.is-open .ycg-tv__bg, .ycg-tv.is-open .ycg-tv__frame { opacity: 1; transform: none; }

.ycg-tv__top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ycg-tv__brand { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.ycg-tv__chip {
	display: inline-flex; align-items: center; gap: 3px; padding: 6px 11px; border-radius: 8px;
	background: #fc016d; font-weight: 900; font-size: 16px; letter-spacing: .02em; box-shadow: 0 6px 20px rgba(252,1,109,.45);
}
.ycg-tv__chip b { background: #fff; color: #fc016d; border-radius: 4px; padding: 1px 5px; font-size: 13px; }
.ycg-tv__sub { font-size: 14px; font-weight: 700; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ycg-tv__clock { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; opacity: .85; }
.ycg-tv button.ycg-tv__x {
	width: 42px; height: 42px; border-radius: 50%; border: 0 !important; background: rgba(255,255,255,.12) !important; color: #fff !important;
	font-size: 28px; line-height: 1; cursor: pointer; padding: 0; box-shadow: none !important;
}
.ycg-tv button.ycg-tv__x:hover { background: #fc016d !important; }

.ycg-tv__body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.ycg-tv__main { min-width: 0; display: flex; flex-direction: column; }

/* ekran z "ramką telewizora" */
.ycg-tv__screen {
	position: relative; width: 100%; max-height: calc(100vh - 240px); aspect-ratio: 16 / 9; margin: 0 auto;
	background: #000; border-radius: 16px; overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 8px rgba(255,255,255,.03), 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(252,1,109,.18);
}
.ycg-tv__video, .ycg-tv__video > div, .ycg-tv__video iframe, .ycg-tv__video video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.ycg-tv__video video { object-fit: contain; background: #000; }
/* logo stacji w rogu jak w TV */
.ycg-tv__bug { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 10px; opacity: .85; pointer-events: none; z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.ycg-tv__bug--txt { display: flex; align-items: center; justify-content: center; background: #fc016d; font-weight: 900; font-size: 16px; }

/* karta "Następnie" po końcu filmu */
.ycg-tv__next-card {
	position: absolute; right: 18px; bottom: 18px; z-index: 3; width: min(320px, 70%); padding: 14px 16px 16px; border-radius: 14px;
	background: rgba(12,12,18,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0,0,0,.5); overflow: hidden;
}
.ycg-tv__next-card[hidden] { display: none; }
.ycg-tv__next-card span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ff6fae; }
.ycg-tv__next-card b { display: block; margin: 4px 0 10px; font-size: 15px; line-height: 1.3; }
.ycg-tv button.ycg-tv__next-now { border: 0 !important; background: #fc016d !important; color: #fff !important; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.ycg-tv__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #fc016d, #8401fc); }
.ycg-tv__next-card.is-run .ycg-tv__bar { width: 100%; transition: width 5s linear; }

/* "pasek informacyjny" jak w telewizji */
.ycg-tv__lower { display: flex; align-items: stretch; margin-top: 14px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.06); }
.ycg-tv__now { display: flex; align-items: center; padding: 0 14px; font-size: 12px; font-weight: 900; letter-spacing: .1em; background: linear-gradient(135deg, #fc016d, #8401fc); }
.ycg-tv h3.ycg-tv__title { margin: 0 !important; padding: 11px 14px !important; font-size: 19px !important; line-height: 1.3 !important; font-weight: 800 !important; color: #fff !important; min-width: 0; }

.ycg-tv__ctrl { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ycg-tv button.ycg-tv__btn {
	height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22) !important; background: transparent !important;
	color: #fff !important; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: none !important; text-transform: none !important;
}
.ycg-tv button.ycg-tv__btn:hover:not(:disabled) { background: #fc016d !important; border-color: #fc016d !important; }
.ycg-tv button.ycg-tv__btn:disabled { opacity: .3; cursor: default; }
.ycg-tv__count { font-size: 13px; font-weight: 800; opacity: .7; font-variant-numeric: tabular-nums; }
.ycg-tv__auto { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 13px; font-weight: 700; opacity: .9; cursor: pointer; }
.ycg-tv__auto input { accent-color: #fc016d; width: 16px; height: 16px; }
.ycg-tv__radio { margin-top: 10px; font-size: 12.5px; color: #ffb3d4; }
.ycg-tv__radio[hidden] { display: none; }

/* lista "Następne" */
.ycg-tv__side { min-height: 0; display: flex; flex-direction: column; background: rgba(255,255,255,.05); border-radius: 16px; overflow: hidden; }
.ycg-tv__side-h { padding: 14px 16px 10px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.ycg-tv__list { list-style: none; margin: 0; padding: 0 8px 10px; overflow-y: auto; flex: 1 1 auto; scrollbar-width: thin; }
.ycg-tv__list li { margin: 0; }
.ycg-tv button.ycg-tv__item {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; margin: 0; border: 0 !important; border-radius: 12px;
	background: transparent !important; color: #fff !important; text-align: left; cursor: pointer; font: inherit; box-shadow: none !important;
}
.ycg-tv button.ycg-tv__item:hover { background: rgba(255,255,255,.08) !important; }
.ycg-tv button.ycg-tv__item.is-on { background: rgba(252,1,109,.2) !important; box-shadow: inset 3px 0 0 #fc016d !important; }
.ycg-tv__ithumb { position: relative; flex: 0 0 120px; width: 120px; aspect-ratio: 16 / 9; border-radius: 8px; background: #222 center / cover; }
.ycg-tv__ithumb em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 9.5px; font-weight: 900; letter-spacing: .08em; background: #fc016d; padding: 2px 6px; border-radius: 4px; }
.ycg-tv__ititle { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* telefon / tablet: ekran na górze, lista przewijana w bok pod spodem */
@media (max-width: 900px) {
	.ycg-tv__bg { background: #0b0b12; }
	.ycg-tv__frame { padding: 12px 0 14px; overflow-y: auto; padding-top: max(12px, env(safe-area-inset-top)); }
	.ycg-tv__bug { width: 32px; height: 32px; top: 10px; right: 10px; font-size: 12px; border-radius: 8px; }
	.ycg-tv__top { padding: 0 14px; margin-bottom: 10px; }
	.ycg-tv__sub, .ycg-tv__clock { display: none; }
	.ycg-tv__body { display: flex; flex-direction: column; gap: 12px; }
	.ycg-tv__screen { border-radius: 0; max-height: none; box-shadow: none; }
	.ycg-tv__lower, .ycg-tv__ctrl, .ycg-tv__radio { margin-left: 14px; margin-right: 14px; }
	.ycg-tv h3.ycg-tv__title { font-size: 16px !important; }
	.ycg-tv__auto { margin-left: 0; }
	.ycg-tv__side { background: none; border-radius: 0; }
	.ycg-tv__side-h { padding: 4px 14px 8px; }
	.ycg-tv__list { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 0 14px 6px; scroll-snap-type: x mandatory; }
	.ycg-tv__list li { flex: 0 0 62%; scroll-snap-align: start; }
	.ycg-tv button.ycg-tv__item { flex-direction: column; align-items: stretch; padding: 0; background: rgba(255,255,255,.06) !important; overflow: hidden; }
	.ycg-tv__ithumb { width: 100%; flex: none; border-radius: 0; }
	.ycg-tv__ititle { padding: 8px 10px 10px; -webkit-line-clamp: 2; }
	.ycg-tv button.ycg-tv__item.is-on { box-shadow: inset 0 -3px 0 #fc016d !important; }
}
@media (prefers-reduced-motion: reduce) { .ycg-tv__bg, .ycg-tv__frame { transition: none; } }
