@charset "utf-8";
/* ===== ランダム試聴プレイヤー（トップページ / js/random-player.js） ===== */

#randomplayer {
	clear: both;
	margin: 0 0 30px;
	padding: 18px 20px 20px;
	background: #fff;
	border: 1px solid #e5e0d8;
	border-radius: 8px;
	color: #000;
	font-size: 14px;
	line-height: 1.6;
	box-sizing: border-box;
}
#randomplayer * { box-sizing: border-box; }

.rp__heading {
	margin: 0 0 16px;
	padding: 0;
	background: none;
	border: none;
	line-height: 0;
}
.rp__heading img {
	max-width: 100%;
	height: auto;
}

.rp__card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.rp__jacket {
	flex: none;
	display: block;
	width: 140px;
	height: 140px;
	border-radius: 4px;
	overflow: hidden;
	background: #b7a594;
}
.rp__jacket img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: none;
}
.rp__jacket.is-noimage img { visibility: hidden; }
#randomplayer.is-empty .rp__jacket { visibility: hidden; }

.rp__info {
	flex: 1;
	min-width: 0;
}
.rp__info p { margin: 0; }
.rp__status { color: #000; }
.rp__artist {
	font-size: 14px;
	color: #000;
	word-break: break-all;
}
.rp__name {
	margin-top: 2px !important;
	font-size: 17px;
	font-weight: bold;
	color: #42210b;
	word-break: break-all;
}
.rp__price {
	margin-top: 4px !important;
	font-size: 14px;
	color: #000;
}
/* SOLD OUT：背景・枠なしの文字だけ */
.rp__price.is-soldout {
	color: #a32d2d;
	font-weight: bold;
	letter-spacing: .05em;
}
/* View Item：茶色の背景に白文字（Play ボタンと同じ作り） */
#randomplayer .rp__link,
#randomplayer .rp__link:link,
#randomplayer .rp__link:visited {
	display: table; /* SOLD OUT の横に並ばないよう、必ず次の行に置く */
	margin-top: 12px;
	padding: 7px 16px;
	border: 1px solid #42210b;
	border-radius: 6px;
	background: #42210b;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
}
.rp__link::after { content: " ›"; }
#randomplayer .rp__link:hover { opacity: .85; }
#randomplayer.is-empty .rp__artist,
#randomplayer.is-empty .rp__name,
#randomplayer.is-empty .rp__price,
#randomplayer.is-empty .rp__link { display: none; }

/* 再生位置 */
.rp__bar {
	height: 6px;
	margin: 16px 0 14px;
	border-radius: 3px;
	background: #e2ddd6;
	cursor: pointer;
	overflow: hidden;
}
.rp__bar-fill {
	width: 0;
	height: 100%;
	background: #006837;
	transition: width .25s linear;
}

/* ボタン */
.rp__ctrl {
	display: flex;
	gap: 10px;
}
.rp__play,
.rp__next {
	height: 46px;
	border-radius: 23px;
	font-size: 15px;
	font-weight: bold;
	font-family: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.rp__play {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid #006837;
	background: #006837;
	color: #fff;
}
.rp__play:hover { opacity: .9; }
.rp__play-icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}
#randomplayer.is-playing .rp__play-icon {
	width: 14px;
	height: 15px;
	border-width: 0 4px;
	border-color: #fff;
	box-sizing: border-box;
	border-style: solid;
}
.rp__next {
	flex: none;
	padding: 0 20px;
	border: 1px solid #42210b;
	background: #fff;
	color: #42210b;
}
.rp__next::after { content: " ▶▶"; font-size: 14px; letter-spacing: -3px; }
.rp__next:hover { background: #f3efe9; }

/* スマホ */
@media screen and (max-width: 768px) {
	#randomplayer {
		margin: 0 3% 24px;
		padding: 14px;
	}
	.rp__card { gap: 12px; }
	.rp__jacket { width: 100px; height: 100px; }
	.rp__name { font-size: 15px; }
	#randomplayer .rp__link { padding: 6px 14px; }
}
