/* 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: 0 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: 20px 24px;
	background: var(--nav-background);
	border: none;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(24, 25, 86, 0.15);
}

.yd-portal__body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
}

.yd-portal__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}

.yd-portal__row--divider {
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yd-portal__row--more {
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	justify-content: center;
}

.yd-portal__more-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 34px;
	padding: 2px 8px 0;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.9);
	transition: color 0.24s ease;
}


.yd-portal__more-label {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	white-space: nowrap;
}

.yd-portal__more-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	color: #81d4fa;
	background: rgba(79, 195, 247, 0.1);
	border: 1px solid rgba(79, 195, 247, 0.42);
	box-shadow:
		0 0 10px rgba(79, 195, 247, 0.12),
		inset 0 0 8px rgba(79, 195, 247, 0.08);
	transition:
		transform 0.24s ease,
		border-color 0.24s ease,
		box-shadow 0.24s ease,
		background 0.24s ease;
}

.yd-portal__more-arrow {
	display: block;
	transform: translateX(0.5px);
}

.yd-portal__more-link:hover {
	color: #fff;
}

.yd-portal__more-link:hover .yd-portal__more-badge {
	transform: translateX(2px);
	color: #fff;
	border-color: rgba(129, 212, 250, 0.85);
	background: rgba(79, 195, 247, 0.22);
	box-shadow:
		0 0 14px rgba(79, 195, 247, 0.35),
		inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.yd-portal__more-link--pending {
	cursor: default;
	pointer-events: none;
}

.yd-portal__more-link--pending .yd-portal__more-badge {
	opacity: 0.82;
}


.yd-portal__group {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1 1 50%;
	min-width: 0;
}

.yd-portal__group--right {
	justify-content: flex-end;
}

.yd-portal__brand {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 0 1 auto;
	min-width: 0;
}

.yd-portal__logo {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
	border: none;
	box-shadow: none;
}

.yd-portal__info {
	flex: 1;
	min-width: 0;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

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

.yd-portal__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
	width: 100%;
}

.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;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 10px;
	flex: 0 0 auto;
	min-width: 0;
	align-self: center;
	margin-left: 0;
	padding-left: 0;
}

.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;
}

@media (hover: hover) and (pointer: fine) {
	.yd-portal__btn:hover .yd-portal__btn-icon {
		opacity: 1;
		transform: scale(1.04);
	}

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

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

	.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios):hover {
		color: var(--button-color);
		background: var(--button-bg-hover);
		border: none;
		box-shadow: none;
	}

	.yd-portal__btn--login:hover {
		color: var(--button-color);
		background: rgba(248, 206, 255, 0.08);
		border-color: rgba(248, 206, 255, 0.55);
		box-shadow: none;
	}

	.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:hover {
		color: #fff;
		background: linear-gradient(180deg, #ffa726, #ff7043 68%);
		box-shadow: 0 6px 18px rgba(255, 138, 80, 0.38);
	}
}

.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--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) {
	color: var(--button-color);
	background: var(--button-bg);
	border: none;
	box-shadow: none;
}

.yd-portal__btn--login {
	color: var(--button-color);
	background: transparent;
	border: 1px solid rgba(248, 206, 255, 0.38);
	box-shadow: none;
}

.yd-portal__btn--android,
.yd-portal__btn--ios {
	color: #0288d1;
	background: rgba(79, 195, 247, 0.16);
	border: 1px solid rgba(79, 195, 247, 0.85);
	box-shadow:
		0 0 10px rgba(79, 195, 247, 0.28),
		inset 0 0 14px rgba(79, 195, 247, 0.12);
}

.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);
}

@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__body {
		gap: 0;
	}

	.yd-portal__row {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.yd-portal__row--divider {
		padding-top: 0;
		border-top: none;
	}

	.yd-portal__body > .yd-portal__row:nth-last-child(2) > .yd-portal__group--right::after {
		display: none;
	}

	.yd-portal__row--more {
		padding-top: 16px;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

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

	.yd-portal__group,
	.yd-portal__group--right {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		flex: 1 1 auto;
		width: 100%;
		gap: 12px;
		padding: 16px 0 20px;
		border-bottom: none;
		position: relative;
	}

	.yd-portal__group::after,
	.yd-portal__group--right::after {
		content: '';
		position: absolute;
		left: 8px;
		right: 8px;
		bottom: 0;
		height: 1px;
		background: rgba(255, 255, 255, 0.08);
	}

	.yd-portal__brand {
		flex: 1 1 auto;
		min-width: 0;
		gap: 14px;
	}

	.yd-portal__logo {
		width: 58px;
		height: 58px;
		border-radius: 12px;
	}

	.yd-portal__info {
		align-items: flex-start;
		text-align: left;
		flex: 1 1 auto;
		min-width: 0;
	}

	.yd-portal__title {
		font-size: 18px;
		font-weight: 700;
		line-height: 1.3;
		margin-bottom: 0;
		text-align: left;
	}

	.yd-portal__tags {
		justify-content: flex-start;
	}

	.yd-portal__actions {
		flex: 0 0 auto;
		width: auto;
		margin: 0;
		padding-left: 0;
		padding-bottom: 0;
		flex-wrap: nowrap;
		justify-content: flex-end;
		gap: 10px;
		flex-shrink: 0;
	}

	.yd-portal__btn {
		width: auto !important;
		height: 44px;
		min-height: 44px;
		min-width: 0;
		padding-inline: 14px !important;
		box-sizing: border-box;
		overflow: hidden;
		background-clip: padding-box;
		-webkit-background-clip: padding-box;
		-webkit-tap-highlight-color: transparent;
		transition: none;
	}

	.yd-portal__btn > i {
		display: none;
	}

	.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios) {
		color: var(--button-color);
		background: var(--button-bg);
		border: none;
		border-radius: 8px;
		box-shadow: none;
		min-width: 90px;
		transition: none;
	}

	.yd-portal__btn--login {
		color: var(--button-color);
		background: transparent;
		border: 1px solid rgba(248, 206, 255, 0.38);
		border-radius: 8px;
		box-shadow: none;
		min-width: 90px;
		transition: none;
	}

	.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios):hover,
	.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios):active,
	.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios):focus,
	.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios):focus-visible {
		transform: none !important;
		color: var(--button-color) !important;
		background: var(--button-bg) !important;
		border: none !important;
		box-shadow: none !important;
	}

	.yd-portal__btn--login:hover,
	.yd-portal__btn--login:active,
	.yd-portal__btn--login:focus,
	.yd-portal__btn--login:focus-visible {
		transform: none !important;
		color: var(--button-color) !important;
		background: transparent !important;
		border: 1px solid rgba(248, 206, 255, 0.38) !important;
		box-shadow: none !important;
	}

	.yd-portal__btn > span,
	.yd-portal__btn-inner {
		font-size: 15px;
		font-weight: 600;
	}

	.yd-portal__btn-inner {
		white-space: nowrap;
	}

	.yd-portal__btn-label {
		white-space: nowrap;
	}

	.yd-portal__more-label {
		font-size: 15px;
	}
}

@media (max-width: 520px) {
	.yd-portal__group,
	.yd-portal__group--right {
		flex-wrap: wrap;
		align-items: center;
		gap: 14px;
		padding: 14px 0 18px;
	}

	.yd-portal {
		padding-top: 8px;
	}

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

	.yd-portal__brand {
		flex: 1 1 100%;
		width: 100%;
		gap: 14px;
		padding-left: 4px;
	}

	.yd-portal__logo {
		width: 58px;
		height: 58px;
		border-radius: 12px;
	}

	.yd-portal__info {
		min-width: 0;
		overflow: visible;
	}

	.yd-portal__title {
		font-size: 18px;
		margin-bottom: 0;
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}

	.yd-portal__actions {
		flex: 1 1 100%;
		width: 100%;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		padding-inline: 4px;
	}

	.yd-portal__btn {
		width: 100% !important;
		height: 42px;
		min-height: 42px;
		justify-content: center;
		padding-inline: 12px !important;
	}

	.yd-portal__btn--reg:not(.yd-portal__btn--android):not(.yd-portal__btn--ios),
	.yd-portal__btn--login {
		min-width: 0 !important;
		border-radius: 8px;
	}

	.yd-portal__btn-inner {
		justify-content: center;
		gap: 0;
		font-size: 15px;
		white-space: nowrap;
	}

	.yd-portal__btn-label {
		font-size: 15px;
		white-space: nowrap;
	}
}
