/* --- ミニプレイヤー スタイル --- */
.mini-video-widget {
	display: none; /* デフォルトで非表示にしてリロード時のちらつきを防止 */
	position: fixed;
	bottom: 94px;
	right: 16px;
	z-index: 2147483647;
	width: 240px;
	height: auto;
	font-family:
		-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	transition:
		transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
		opacity 0.3s ease;
}

/* JSで表示対象と判定された場合に付与するクラス */
.mini-video-widget.is-active {
	display: block;
}

.mini-video-widget.is-hidden {
	display: none !important;
}

/* 閉じるボタン */
.mini-video-close {
	position: absolute;
	top: -23px;
	right: -16px;
	z-index: 2147483647;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #7b7b7b;
	color: #ffffff;
	border: 2px solid #ffffff;
	font-size: 14px;
	font-weight: bold;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	transition:
		background-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.mini-video-close:active {
	transform: scale(0.95);
}

/* 本体カード枠 */
.mini-video-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
	background-color: #dfdfe3;
}

/* 上部ヘッダー空エリア */
.mini-video-header {
	width: 100%;
	height: 10px;
	background-color: #dfdfe3;
}

/* 16:9 動画エリア */
.mini-video-iframe-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000;
}

.mini-video-iframe-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* 動画下部コンテンツエリア */
.mini-video-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 12px;
	background-color: #dfdfe3;
	gap: 10px;
}

.mini-video-info {
	flex: 1;
	min-width: 0;
}

.mini-video-link {
	color: #ffffff;
	text-decoration: none;
	display: block;
}

.mini-video-title {
	margin: 0 0 2px 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: #272727;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mini-video-cta {
	font-size: 11px;
	font-weight: 700;
	color: #e65264;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

/* PC（769px以上） */
@media (min-width: 768px) {
	.mini-video-widget {
		bottom: 24px;
		right: 24px;
		width: 320px;
	}

	.mini-video-content {
		padding: 12px 14px;
	}

	.mini-video-title {
		font-size: 12px;
	}

	.mini-video-cta {
		font-size: 11px;
	}
}
