/**
 * KH Tube — MAX ekonomi: profil dropdown, günlük boost, izleme çubuğu.
 */

/* ── Header MAX link + profile ── */
.kh-tube-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kh-tube-max-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.25));
	border: 1px solid rgba(236, 72, 153, 0.35);
	color: #fce7f3;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kh-tube-max-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25);
	color: #fff;
}

.kh-tube-max-profile {
	position: relative;
}

.kh-tube-max-profile__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(15, 15, 20, 0.65);
	color: #f5f5f5;
	cursor: pointer;
	font-size: 0.78rem;
}

.kh-tube-max-profile__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.kh-tube-max-profile__avatar--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #ec4899, #a855f7);
	font-weight: 700;
	font-size: 0.7rem;
}

.kh-tube-max-profile__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 120;
	min-width: 240px;
	padding: 14px;
	border-radius: 14px;
	background: #12121a;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.kh-tube-max-profile__head {
	margin-bottom: 10px;
}

.kh-tube-max-profile__name {
	display: block;
	font-size: 0.95rem;
}

.kh-tube-max-profile__badge {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(236, 72, 153, 0.2);
	color: #f9a8d4;
	font-size: 0.7rem;
}

.kh-tube-max-profile__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 12px;
}

.kh-tube-max-profile__stat {
	padding: 8px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	text-align: center;
}

.kh-tube-max-profile__stat-value {
	display: block;
	font-weight: 700;
	font-size: 1rem;
	color: #fbbf24;
}

.kh-tube-max-profile__stat-label {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.55);
}

.kh-tube-max-profile__nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kh-tube-max-profile__nav a {
	padding: 8px 10px;
	border-radius: 8px;
	color: #e5e5e5;
	text-decoration: none;
	font-size: 0.85rem;
}

.kh-tube-max-profile__nav a:hover {
	background: rgba(236, 72, 153, 0.15);
}

.kh-tube-max-profile__guest {
	margin: 0 0 10px;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.7);
}

.kh-tube-max-profile__login {
	display: block;
	text-align: center;
	padding: 10px;
	border-radius: 10px;
	background: linear-gradient(135deg, #ec4899, #a855f7);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

/* ── Video watch progress ── */
.kh-tube-watch-tracker {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	height: 4px;
	background: rgba(255, 255, 255, 0.15);
	pointer-events: none;
}

.kh-tube-watch-tracker__fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #ec4899, #fbbf24);
	transition: width 0.2s ease;
}

.kh-tube-watch-tracker__label {
	position: absolute;
	right: 8px;
	bottom: 10px;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 0.65rem;
	white-space: nowrap;
}

.kh-tube-watch-tracker.is-qualified .kh-tube-watch-tracker__fill {
	background: linear-gradient(90deg, #22c55e, #fbbf24);
}

.kh-tube-watch-tracker.is-rewarded .kh-tube-watch-tracker__label::after {
	content: ' ✓';
}

.kh-tube-watch-tracker__hint {
	margin: 8px var(--kh-vp-pad-x, 12px) 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(236, 72, 153, 0.12);
	color: #fbcfe8;
	font-size: 0.8rem;
	text-align: center;
}

/* ── Daily boost homepage ── */
.kh-tube-daily-boost {
	margin: 20px 0;
}

.kh-tube-daily-boost__panel {
	padding: 20px;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(30, 20, 45, 0.95), rgba(15, 15, 25, 0.98));
	border: 1px solid rgba(236, 72, 153, 0.25);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.kh-tube-daily-boost__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.kh-tube-daily-boost__eyebrow {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fbbf24;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.kh-tube-daily-boost__title {
	margin: 0 0 6px;
	font-size: clamp(1.1rem, 3vw, 1.35rem);
	color: #fff;
}

.kh-tube-daily-boost__sub {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.65);
}

.kh-tube-daily-boost__multiplier {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(251, 191, 36, 0.15);
	color: #fbbf24;
	font-size: 1.4rem;
	font-weight: 800;
	flex-shrink: 0;
}

.kh-tube-daily-boost__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.kh-tube-daily-boost__card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kh-tube-daily-boost__card--neon {
	box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.35), 0 0 18px rgba(168, 85, 247, 0.25);
}

.kh-tube-daily-boost__neon-frame {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.45);
	animation: kh-tube-neon-pulse 2.4s ease-in-out infinite;
}

.kh-tube-daily-boost__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.55), 0 12px 32px rgba(236, 72, 153, 0.28);
}

.kh-tube-daily-boost__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.kh-tube-daily-boost__media {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0;
	overflow: hidden;
	background: #000;
}

.kh-tube-daily-boost__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kh-tube-daily-boost__tag {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 4px 8px;
	border-radius: 6px;
	background: linear-gradient(135deg, #ec4899, #a855f7);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
}

.kh-tube-daily-boost__body {
	padding: 10px 12px 12px;
}

.kh-tube-daily-boost__video-title {
	margin: 0 0 4px;
	font-size: 0.9rem;
	color: #fff;
	overflow-wrap: anywhere;
}

.kh-tube-daily-boost__meta {
	margin: 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

/* ── Player reward toast ── */
.kh-tube-reward-toast {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	background: rgba(10, 10, 16, 0.88);
	border: 1px solid rgba(251, 191, 36, 0.45);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(236, 72, 153, 0.35);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	transform: translate(-50%, -50%) scale(0.85);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kh-tube-reward-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.kh-tube-reward-toast--coin {
	border-color: rgba(251, 191, 36, 0.65);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(251, 191, 36, 0.35);
}

.kh-tube-reward-toast--complete {
	border-color: rgba(34, 197, 94, 0.55);
}

.kh-tube-reward-toast__icon {
	font-size: 1.1rem;
}

/* ── Sidebar boosted neon list ── */
.kh-tube-widget--boosted {
	position: relative;
	padding: 12px;
	border-radius: 14px;
	background: linear-gradient(145deg, rgba(30, 20, 45, 0.7), rgba(15, 15, 25, 0.85));
	border: 1px solid rgba(236, 72, 153, 0.28);
	box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.kh-tube-widget-title--boost {
	position: relative;
	color: #fbbf24;
}

.kh-tube-widget-title__glow {
	position: absolute;
	inset: -4px -8px;
	background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 70%);
	pointer-events: none;
}

.kh-tube-widget-sub {
	margin: 0 0 10px;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
}

.kh-tube-boosted-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kh-tube-boosted-item {
	margin: 0;
}

.kh-tube-boosted-link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 10px;
	text-decoration: none;
	color: #fff;
	background: rgba(255, 255, 255, 0.03);
	overflow: hidden;
}

.kh-tube-boosted-frame {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.45);
	animation: kh-tube-neon-pulse 2.6s ease-in-out infinite;
	pointer-events: none;
}

.kh-tube-boosted-link:hover {
	background: rgba(236, 72, 153, 0.1);
}

.kh-tube-boosted-thumb {
	width: 80px;
	height: 45px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.kh-tube-boosted-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.kh-tube-boosted-tag {
	display: inline-block;
	align-self: flex-start;
	padding: 2px 6px;
	border-radius: 4px;
	background: linear-gradient(135deg, #ec4899, #a855f7);
	font-size: 0.65rem;
	font-weight: 700;
}

.kh-tube-boosted-title {
	font-size: 0.8rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

@keyframes kh-tube-neon-pulse {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}

@media (max-width: 768px) {
	.kh-tube-max-link__text {
		display: none;
	}

	.kh-tube-max-profile__balance {
		display: none;
	}

	.kh-tube-daily-boost__head {
		flex-direction: column;
	}

	.kh-tube-daily-boost__grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 769px) and (max-width: 991px) {
	.kh-tube-daily-boost__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
