/* MusicalDown Downloader — musicaldown.id brand system (matched to the
   live musicaldown.com brand): header pink #EF124E, hero pink #FF0F50,
   paste gradient pink #FF0F50 -> #EF124E,
   download buttons orange gradient #FFA807 -> #FF9800 */
.musicaldown-dl {
	max-width: 880px;
	margin: 0 auto;
	font-family: inherit;
}
.musicaldown-dl__form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.musicaldown-dl__inputwrap {
	position: relative;
	flex: 1 1 420px;
	display: flex;
}
/* Selector carries extra weight on purpose: the theme's generic
   input[type="url"] rule (8px padding) otherwise overrides the class-only
   rule and the 118px end reserve for the Paste button is lost — in RTL the
   placeholder then starts underneath the Paste button. */
.musicaldown-dl input.musicaldown-dl__input {
	flex: 1;
	width: 100%;
	padding: 16px 118px 16px 18px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	background: #fff;
	color: #1f2430;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.musicaldown-dl__input:focus {
	outline: 2px solid #ef124e;
	outline-offset: 1px;
}
.musicaldown-dl__paste {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	border-radius: 6px;
	padding: 9px 16px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: #fff;
	background: linear-gradient(90deg, #ff0f50, #ef124e);
	cursor: pointer;
}
.musicaldown-dl__clear {
	position: absolute;
	right: 108px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	font-size: 20px;
	line-height: 1;
	color: #8a8f98;
	cursor: pointer;
}
.musicaldown-dl__submit {
	flex: 0 0 auto;
	border: none;
	border-radius: 8px;
	padding: 16px 34px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(90deg, #ff9800, #ffa807);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.musicaldown-dl__submit:hover {
	background: linear-gradient(90deg, #f57c00, #ff9800);
}
.musicaldown-dl__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}
.musicaldown-dl__msg {
	margin: 14px 0 0;
	min-height: 1.2em;
	font-size: 15px;
	color: #fff;
	text-align: center;
}
.musicaldown-dl__msg--error {
	color: #ffe1e1;
	font-weight: 600;
}
.musicaldown-dl__result {
	margin-top: 18px;
}
/* Result card v1.1.0 — competitor-style layout: caption strip on top,
   big media preview, full-width action buttons below. */
.musicaldown-dl__card {
	background: #fff;
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
	text-align: left;
	max-width: 760px;
	margin: 0 auto;
}
.musicaldown-dl__caption {
	padding: 16px 18px 12px;
}
.musicaldown-dl__title {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.45;
	color: #1f2430;
}
.musicaldown-dl__author {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}
.musicaldown-dl__video {
	display: block;
	width: 100%;
	max-height: 520px;
	background: #000;
}
.musicaldown-dl__bigcover {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	background: #eee;
}
.musicaldown-dl__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 0 6px;
}
.musicaldown-dl__cell img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	background: #eee;
}
.musicaldown-dl__cell .musicaldown-dl__btn {
	width: 100%;
	margin-top: 6px;
}
.musicaldown-dl__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}
.musicaldown-dl .musicaldown-dl__btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	padding: 13px 20px;
	border: none;
	border-radius: 8px;
	background: #eef1f6;
	color: #1f2430;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
}
/* Every button state is pinned explicitly: the theme's global link and
   link-hover colours must never wash out or recolour button text. */
.musicaldown-dl .musicaldown-dl__btn:visited {
	color: #1f2430;
}
.musicaldown-dl .musicaldown-dl__btn:hover,
.musicaldown-dl .musicaldown-dl__btn:focus,
.musicaldown-dl .musicaldown-dl__btn:active {
	color: #1f2430;
	background: #dde3ec;
	text-decoration: none;
}
.musicaldown-dl .musicaldown-dl__btn--primary,
.musicaldown-dl .musicaldown-dl__btn--primary:visited {
	background: linear-gradient(90deg, #ff9800, #ffa807);
	color: #fff;
}
.musicaldown-dl .musicaldown-dl__btn--primary:hover,
.musicaldown-dl .musicaldown-dl__btn--primary:focus,
.musicaldown-dl .musicaldown-dl__btn--primary:active {
	background: linear-gradient(90deg, #f57c00, #ff9800);
	color: #fff;
	text-decoration: none;
}
.musicaldown-dl .musicaldown-dl__btn--mp3,
.musicaldown-dl .musicaldown-dl__btn--mp3:visited {
	background: linear-gradient(90deg, #ff0f50, #ef124e);
	color: #fff;
}
.musicaldown-dl .musicaldown-dl__btn--mp3:hover,
.musicaldown-dl .musicaldown-dl__btn--mp3:focus,
.musicaldown-dl .musicaldown-dl__btn--mp3:active {
	background: linear-gradient(90deg, #ff0f50, #c40b3e);
	color: #fff;
	text-decoration: none;
}
.musicaldown-dl .musicaldown-dl__btn--another,
.musicaldown-dl .musicaldown-dl__btn--another:visited {
	background: #111827;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.musicaldown-dl .musicaldown-dl__btn--another:hover,
.musicaldown-dl .musicaldown-dl__btn--another:focus,
.musicaldown-dl .musicaldown-dl__btn--another:active {
	background: #000000;
	color: #fff;
	text-decoration: none;
}
@media (max-width: 640px) {
	.musicaldown-dl {
		max-width: 100%;
	}
	.musicaldown-dl__submit {
		flex: 1 1 100%;
	}
	.musicaldown-dl__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4px;
		padding: 0 4px;
	}
	.musicaldown-dl__actions {
		padding: 12px;
	}
	.musicaldown-dl__caption {
		padding: 12px 12px 10px;
	}
}
