/* RL kartları: Play Discovery şablonuyla aynı değerler */

.rl-discovery {
	padding: 0;
}

.rl-discovery [hidden] {
	display: none !important;
}

/* Arama */
.rl-search-container {
	position: relative;
	max-width: 640px;
	margin: 24px auto 1.25rem;
	display: flex;
	align-items: center;
}

.rl-search-icon {
	position: absolute;
	left: 18px;
	color: rgba(255, 255, 255, 0.4);
	pointer-events: none;
	transition: color 0.3s ease;
}

.rl-search-input {
	width: 100%;
	padding: 8px 48px 8px 48px !important;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 30px !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	background: rgba(255, 255, 255, 0.06) !important;
	color: #ffffff !important;
	transition: all 0.3s ease !important;
	outline: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.rl-search-input::-webkit-search-decoration,
.rl-search-input::-webkit-search-cancel-button,
.rl-search-input::-webkit-search-results-button,
.rl-search-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	display: none;
}

.rl-search-input::-ms-clear {
	display: none;
}

.rl-search-input::placeholder {
	color: rgba(255, 255, 255, 0.4);
	opacity: 1;
}

.rl-search-input:focus {
	border-color: #00ff88 !important;
	background: rgba(255, 255, 255, 0.08) !important;
	box-shadow: 0 0 20px rgba(0, 255, 136, 0.25) !important;
}

.rl-search-container:focus-within .rl-search-icon {
	color: #00ff88;
}

/* Temizle: üst çubuk aramasındaki tema X ikonu */
.rl-search-clear {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	z-index: 2;
	min-height: 0;
	margin: 0;
	padding: 4px;
	background: transparent !important;
	border: none !important;
	color: #fff !important;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s;
}

.rl-search-clear i {
	display: block;
	font-size: 1.25rem;
}

.rl-search-container .rl-search-clear:hover {
	color: #00ff88 !important;
}

/* Besteci araması notu */
.rl-search-note {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0 0 1rem;
	font-size: 0.75rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.6);
}

.rl-search-note-ico {
	flex: 0 0 auto;
	font-size: 0.875rem;
	line-height: 1;
}

.rl-empty {
	margin: 0 0 1rem;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.7);
}

/* Bölümler */
.rl-section {
	margin-bottom: 3rem;
}

.rl-section-title {
	font-size: 1.375rem;
	font-weight: 500;
	margin-bottom: 1.25rem;
	padding: 0.625rem 0.875rem;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
}

/* Izgara ve kart */
.rl-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1.5rem;
}

@media (min-width: 768px) {
	.rl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.rl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rl-card { margin: 0; padding: 0; }

.rl-link {
	display: block;
	height: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease;
}

.rl-link:hover {
	transform: translateY(-4px);
	color: inherit;
}

.rl-thumb {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: linear-gradient( 135deg, hsl(var(--h), 55%, 32%), hsl(calc(var(--h) + 40), 60%, 18%) );
}

.rl-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.rl-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 2px 6px;
	border-radius: 4px;
	pointer-events: none;
}

.rl-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0.625rem 0.625rem 0.75rem;
	font-size: 1.125rem;
	line-height: 1.125em;
	font-weight: 500;
}

/* Daha Fazla (buton veya bağlantı) */
.rl-load-more-wrap {
	text-align: center;
	margin-top: 1.5rem;
}

.rl-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 2.125rem;
	min-height: 0;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: inherit;
	padding: 0 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	border-radius: 30px;
	cursor: pointer;
	transition: all 0.2s ease;
}

a.rl-load-more:hover,
a.rl-load-more:focus {
	color: inherit;
	text-decoration: none;
}

@media (hover: hover) {
	.rl-load-more:hover {
		background: rgba(255, 255, 255, 0.15);
	}
}

.rl-load-more:active {
	background: rgba(255, 255, 255, 0.15);
}

.rl-load-more:focus:not(:focus-visible) {
	outline: none;
}

/* Reklam alanları: içerik gövdesiyle aynı genişlik */
.rl-discovery .adsense-before-main {
	box-sizing: border-box;
	clear: both;
	width: 100%;
	max-width: 100%;
	margin: 0 0 3rem;
	padding: 0;
}

.rl-discovery .lazy-adsense-slot {
	width: 100%;
	max-width: 100%;
}

.rl-grid-next {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.rl-grid-next { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
	.rl-grid-next { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Üst çubuk arama paneli: sonuçlar panel içinde kayar */
.cs-search .rl-hsearch {
	max-height: calc(100vh - 10rem);
	max-height: calc(100dvh - 10rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0.25rem 0 1.5rem;
	/* Alttaki sabit reklam/oynatıcı Daha Fazla'yı örtmesin */
	padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px));
}

.cs-search .rl-hsearch .rl-load-more-wrap {
	margin-top: 1.25rem;
}

@media (min-width: 1024px) {
	.cs-search .rl-hsearch .rl-grid-next { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
}

@media (min-width: 1200px) {
	.cs-search .rl-hsearch .rl-grid-next { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.cs-search .rl-hsearch .rl-title {
	font-size: 1rem;
}

/* Keşfet logosu: Play logosuyla aynı ölçüler */
.rl-play-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 auto 16px;
}

.rl-play-icon-badge {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.rl-play-title {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: 2.5px;
	color: #ffffff;
	text-transform: uppercase;
}

.rl-play-header .rl-play-title:first-child {
	margin-right: -2.5px;
}

.rl-brand-kesfet .rl-play-icon-badge {
	background: linear-gradient(135deg, #00ff88, #004444);
	box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.rl-brand-kesfet .rl-play-title strong {
	font-weight: 700;
	background: linear-gradient(90deg, #00ff88, #004444);
	background-size: 170% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

@media (max-width: 767px) {
	.rl-play-icon-badge {
		width: 34px;
		height: 34px;
	}
	.rl-play-title {
		font-size: 1.15rem;
	}
}