/* Portal bar — yundayule.top site theme (Milan dark palette) */

.yunda-ad-slot {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.yunda-ad-slot--before-about {
	margin-top: 8px;
	margin-bottom: 8px;
}

.yunda-ad-slot:empty {
	min-height: 0;
}

.yunda-ad-slot iframe,
.yunda-ad-slot img {
	max-width: 100%;
	height: auto;
	display: block;
	margin-inline: auto;
}

@media (max-width: 768px) {
	.yunda-ad-slot {
		padding-inline: 16px;
	}

	.yunda-ad-slot--before-about {
		margin-top: 4px;
		margin-bottom: 4px;
	}
}

.yd-portal {
	width: 100%;
	margin: 0;
	padding: 12px 0 4px;
	font-family: inherit;
	box-sizing: border-box;
	--yd-portal-icon-size: 17px;
}

.yd-portal *,
.yd-portal *::before,
.yd-portal *::after {
	box-sizing: border-box;
}

.yd-portal__card {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 24px;
	background: var(--nav-background);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.yd-portal__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.yd-portal__logo {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

.yd-portal__info {
	flex: 1;
	min-width: 0;
}

.yd-portal__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--title-color);
	margin-bottom: 8px;
	line-height: 1.2;
}

.yd-portal__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.yd-portal__tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--desc-color);
	white-space: nowrap;
}

.yd-portal__tag em {
	font-style: normal;
	font-size: 16px;
	font-weight: 700;
	color: #ff8a50;
}

.yd-portal__tag--hot svg {
	color: #ff8a50;
}

.yd-portal__tag--ok {
	color: #5ee08a;
}

.yd-portal__tag--ok svg {
	color: #5ee08a;
}

.yd-portal__actions {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
	flex-shrink: 0;
	align-self: center;
	margin-left: auto;
	padding-left: 16px;
}

.yd-portal__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	isolation: isolate;
	flex-shrink: 0;
	transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.yd-portal__btn > span {
	position: relative;
	z-index: 2;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.yd-portal__btn-inner {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	line-height: 1;
}

.yd-portal__btn-label {
	line-height: 1;
}

.yd-portal__btn-icon {
	display: block;
	flex-shrink: 0;
	width: var(--yd-portal-icon-size);
	height: var(--yd-portal-icon-size);
	min-width: var(--yd-portal-icon-size);
	min-height: var(--yd-portal-icon-size);
	opacity: 0.95;
	overflow: visible;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.yd-portal__btn-icon--android,
.yd-portal__btn-icon--apple,
.yd-portal__btn-icon--more {
	width: var(--yd-portal-icon-size);
	height: var(--yd-portal-icon-size);
	min-width: var(--yd-portal-icon-size);
	min-height: var(--yd-portal-icon-size);
}

.yd-portal__btn-icon--android,
.yd-portal__btn-icon--apple {
	fill: currentColor;
}

.yd-portal__btn-icon--more {
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.yd-portal__btn--android,
.yd-portal__btn--ios {
	overflow: visible;
}

.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios),
.yd-portal__btn--login,
.yd-portal__btn--more {
	width: auto;
	min-width: 0;
	padding: 0 12px;
}

.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios) .yd-portal__btn-inner,
.yd-portal__btn--login .yd-portal__btn-inner {
	gap: 0;
}

.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios) {
	min-width: 96px;
}

.yd-portal__btn--login {
	min-width: 112px;
}

.yd-portal__btn--more {
	min-width: 128px;
	padding: 0 14px;
}

.yd-portal__btn--more .yd-portal__btn-inner {
	gap: 6px;
}

.yd-portal__btn:hover .yd-portal__btn-icon {
	opacity: 1;
	transform: scale(1.04);
}

.yd-portal__btn > i {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	overflow: hidden;
}

.yd-portal__btn > i::before {
	content: "";
	position: absolute;
	top: 0;
	left: -130%;
	width: 50%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	transition: left 0.55s ease;
}

.yd-portal__btn:hover > i::before {
	left: 190%;
}

.yd-portal__btn:hover {
	transform: translateY(-1px);
}

.yd-portal__btn--android {
	width: 108px;
	padding: 0;
}

.yd-portal__btn--ios {
	width: 108px;
	padding: 0;
}

.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios) {
	width: auto;
}

.yd-portal__btn--login {
	width: auto;
}

.yd-portal__btn--more {
	width: auto;
}

.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios),
.yd-portal__btn--login,
.yd-portal__btn--android,
.yd-portal__btn--ios {
	color: #0288d1;
	background: linear-gradient(180deg, rgba(79, 195, 247, 0.22) 0%, rgba(79, 195, 247, 0.1) 100%);
	border: 1px solid rgba(79, 195, 247, 0.85);
	box-shadow:
		0 0 10px rgba(79, 195, 247, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.45),
		inset 0 0 14px rgba(79, 195, 247, 0.12);
}

.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios):hover,
.yd-portal__btn--login:hover,
.yd-portal__btn--android:hover,
.yd-portal__btn--ios:hover {
	color: #fff;
	background: linear-gradient(180deg, rgba(79, 195, 247, 0.72) 0%, rgba(41, 182, 246, 0.55) 100%);
	border-color: #81d4fa;
	box-shadow:
		0 0 16px rgba(79, 195, 247, 0.55),
		0 0 32px rgba(79, 195, 247, 0.18),
		inset 0 0 16px rgba(255, 255, 255, 0.15);
}

.yd-portal__btn--more {
	color: #fff;
	background: linear-gradient(180deg, #ffb74d, #ff8a50 68%);
	border: none;
	box-shadow: 0 4px 14px rgba(255, 138, 80, 0.28);
}

.yd-portal__btn--more:hover {
	color: #fff;
	background: linear-gradient(180deg, #ffa726, #ff7043 68%);
	box-shadow: 0 6px 18px rgba(255, 138, 80, 0.38);
}

@media (max-width: 1180px) {
	.yd-portal__actions {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		max-width: min(100%, 620px);
		padding-bottom: 2px;
	}

	.yd-portal__actions::-webkit-scrollbar {
		display: none;
	}
}

@media (max-width: 900px) {
	.yd-portal__head {
		flex-wrap: wrap;
		align-items: center;
	}

	.yd-portal__actions {
		order: 4;
		width: 100%;
		max-width: none;
		margin: 8px 0 0;
		padding-left: 0;
		justify-content: flex-start;
	}
}

@media (max-width: 520px) {
	.yd-portal {
		padding-top: 12px;
	}

	.yd-portal__card {
		padding: 14px 16px;
	}

	.yd-portal__title {
		font-size: 15px;
	}

	.yd-portal__tags {
		gap: 6px 10px;
	}

	.yd-portal__tag {
		font-size: 12px;
	}

	.yd-portal__actions {
		flex-direction: column;
		align-items: stretch;
		overflow-x: visible;
	}

	.yd-portal__btn {
		width: 100% !important;
		justify-content: center;
		padding-inline: 14px !important;
	}

	.yd-portal__btn-inner {
		justify-content: center;
		gap: 6px;
	}

	.yd-portal__btn-icon,
	.yd-portal__btn-icon--android,
	.yd-portal__btn-icon--apple,
	.yd-portal__btn-icon--more {
		width: var(--yd-portal-icon-size) !important;
		height: var(--yd-portal-icon-size) !important;
		min-width: var(--yd-portal-icon-size);
		min-height: var(--yd-portal-icon-size);
	}
}
