/* =====================================================
   HAITI FAN CHANTS & MUSIC — Plugin Styles
   ===================================================== */

/* Section */
.hfc-music-section {
	--hfc-primary: #0B2D8F;
	--hfc-accent: #D71920;
	--hfc-gold: #D4AF37;
	--hfc-dark: #061A3D;
	--hfc-light: #F5F7FA;
	--hfc-white: #FFFFFF;
	font-family: inherit;
}

/* =====================================================
   GRID LAYOUT
   ===================================================== */
.hfc-music-grid {
	display: grid;
	gap: 28px;
}

.hfc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hfc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hfc-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* =====================================================
   SLIDER LAYOUT
   ===================================================== */
.hfc-slider-wrap {
	position: relative;
	overflow: hidden;
	padding-bottom: 48px;
}

.hfc-slider-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

.hfc-slide {
	flex-shrink: 0;
	padding: 0 14px;
	box-sizing: border-box;
}

.hfc-slide .hfc-music-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* Slider Navigation Arrows */
.hfc-slider-btn {
	position: absolute;
	top: calc(50% - 24px);
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--hfc-white);
	color: var(--hfc-dark);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	z-index: 5;
	transition: all 0.25s ease;
	padding: 0;
}

.hfc-slider-btn:hover {
	background: var(--hfc-accent);
	color: var(--hfc-white);
	box-shadow: 0 6px 24px rgba(215, 25, 32, 0.35);
	transform: translateY(-50%) scale(1.08);
}

.hfc-slider-btn svg {
	width: 20px;
	height: 20px;
}

.hfc-slider-prev { left: 4px; }
.hfc-slider-next { right: 4px; }

/* Slider Dots */
.hfc-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
}

.hfc-slider-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.15);
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}

.hfc-slider-dot:hover {
	background: rgba(215, 25, 32, 0.4);
}

.hfc-slider-dot.active {
	background: var(--hfc-accent);
	transform: scale(1.3);
	box-shadow: 0 0 8px rgba(215, 25, 32, 0.4);
}

/* =====================================================
   MUSIC CARD (shared by grid + slider)
   ===================================================== */
.hfc-music-card {
	position: relative;
	background: var(--hfc-white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
	            box-shadow 0.35s ease;
	border: 1px solid rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
}

.hfc-music-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Demo Label */
.hfc-demo-label {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	background: var(--hfc-accent);
	color: var(--hfc-white);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(215, 25, 32, 0.4);
}

/* Cover Image */
.hfc-card-cover {
	position: relative;
	height: 220px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--hfc-dark) 0%, var(--hfc-primary) 100%);
	flex-shrink: 0;
}

.hfc-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hfc-music-card:hover .hfc-card-cover img {
	transform: scale(1.08);
}

.hfc-card-cover-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.25);
}

.hfc-card-cover-placeholder svg {
	width: 64px;
	height: 64px;
}

/* Play Overlay */
.hfc-play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(6, 26, 61, 0.4);
	opacity: 0;
	transition: opacity 0.3s ease;
	cursor: pointer;
	border: none;
	padding: 0;
}

.hfc-music-card:hover .hfc-play-overlay {
	opacity: 1;
}

.hfc-play-overlay svg {
	width: 56px;
	height: 56px;
	color: var(--hfc-white);
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
	transition: transform 0.2s ease;
}

.hfc-play-overlay:hover svg {
	transform: scale(1.15);
}

/* Card Body */
.hfc-card-body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.hfc-card-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--hfc-dark);
	margin: 0 0 4px 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hfc-card-artist {
	font-size: 13px;
	color: #94a3b8;
	margin: 0 0 16px 0;
	font-weight: 500;
}

/* Custom Audio Player */
.hfc-audio-player {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding: 10px 12px;
	background: var(--hfc-light);
	border-radius: 10px;
}

.hfc-player-btn {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: var(--hfc-primary);
	color: var(--hfc-white);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.15s ease;
	padding: 0;
}

.hfc-player-btn:hover {
	background: var(--hfc-accent);
	transform: scale(1.1);
}

.hfc-player-btn svg {
	width: 16px;
	height: 16px;
}

.hfc-player-progress-wrap {
	flex: 1;
	cursor: pointer;
	padding: 4px 0;
}

.hfc-player-progress {
	width: 100%;
	height: 4px;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

.hfc-player-progress-filled {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--hfc-accent), var(--hfc-gold));
	border-radius: 4px;
	transition: width 0.1s linear;
}

.hfc-player-time {
	font-size: 12px;
	font-weight: 600;
	color: var(--hfc-dark);
	min-width: 36px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* Action Buttons */
.hfc-card-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
	margin-top: auto;
}

.hfc-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 12px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: var(--hfc-white);
	color: var(--hfc-dark);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hfc-action-btn svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.hfc-action-btn:hover {
	background: var(--hfc-accent);
	color: var(--hfc-white);
	border-color: var(--hfc-accent);
	transform: translateY(-1px);
}

/* Social Links */
.hfc-card-social {
	display: flex;
	gap: 8px;
}

.hfc-social-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hfc-social-link svg {
	width: 14px;
	height: 14px;
}

.hfc-yt-link {
	background: #FF00001A;
	color: #FF0000;
}

.hfc-yt-link:hover {
	background: #FF0000;
	color: var(--hfc-white);
}

.hfc-tt-link {
	background: #0100001A;
	color: #010000;
}

.hfc-tt-link:hover {
	background: #010000;
	color: var(--hfc-white);
}

/* =====================================================
   LYRICS MODAL
   ===================================================== */
.hfc-lyrics-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hfc-lyrics-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(6, 26, 61, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hfc-lyrics-modal-content {
	position: relative;
	background: var(--hfc-white, #fff);
	border-radius: 20px;
	padding: 40px;
	max-width: 560px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	animation: hfcModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hfcModalIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.hfc-lyrics-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #f1f5f9;
	color: #64748b;
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	line-height: 1;
}

.hfc-lyrics-modal-close:hover {
	background: var(--hfc-accent, #D71920);
	color: #fff;
}

.hfc-lyrics-modal-title {
	font-size: 22px;
	font-weight: 700;
	color: #061A3D;
	margin: 0 0 20px 0;
	padding-right: 40px;
}

.hfc-lyrics-modal-body {
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
	white-space: pre-wrap;
	font-style: italic;
}

/* Empty State */
.hfc-music-empty {
	text-align: center;
	padding: 60px 20px;
	color: #94a3b8;
}

.hfc-music-empty svg {
	margin-bottom: 16px;
	opacity: 0.5;
}

.hfc-music-empty p {
	font-size: 15px;
}

/* Toast Notification */
.hfc-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: #061A3D;
	color: #fff;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	z-index: 100000;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
}

.hfc-toast.hfc-toast-show {
	transform: translateX(-50%) translateY(0);
}

/* =====================================================
   SUBMIT CHANT — TRIGGER BUTTON
   ===================================================== */
.hfc-submit-btn-wrap {
	text-align: center;
}

.hfc-submit-trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 36px;
	border-radius: 12px;
	border: none;
	background: #D71920;
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 16px rgba(215, 25, 32, 0.35);
}

.hfc-submit-trigger:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(215, 25, 32, 0.45);
}

.hfc-submit-trigger i,
.hfc-submit-trigger svg {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* =====================================================
   SUBMIT CHANT — FORM MODAL
   ===================================================== */
.hfc-form-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hfc-form-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(6, 26, 61, 0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hfc-form-modal-content {
	position: relative;
	background: #FFFFFF;
	border-radius: 20px;
	padding: 40px;
	max-width: 680px;
	width: 92%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	animation: hfcFormModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hfcFormModalIn {
	from {
		opacity: 0;
		transform: scale(0.92) translateY(24px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.hfc-form-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #f1f5f9;
	color: #64748b;
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	line-height: 1;
	z-index: 2;
}

.hfc-form-modal-close:hover {
	background: #D71920;
	color: #fff;
}

.hfc-form-title {
	font-size: 26px;
	font-weight: 800;
	color: #061A3D;
	margin: 0 0 8px 0;
	padding-right: 40px;
}

.hfc-form-desc {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 28px 0;
	line-height: 1.6;
}

/* Form Layout */
.hfc-submit-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hfc-form-row {
	display: flex;
	gap: 16px;
}

.hfc-form-row-2 > .hfc-form-group {
	flex: 1;
}

.hfc-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hfc-form-label {
	font-size: 13px;
	font-weight: 600;
	color: #061A3D;
}

.hfc-req {
	color: #D71920;
}

.hfc-optional {
	color: #94a3b8;
	font-weight: 400;
	font-size: 12px;
}

.hfc-form-input,
.hfc-form-textarea,
.hfc-form-select {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #F5F7FA;
	color: #061A3D;
	font-size: 14px;
	font-family: inherit;
	transition: all 0.25s ease;
	outline: none;
	box-sizing: border-box;
}

.hfc-form-input:hover,
.hfc-form-input:focus,
.hfc-form-textarea:hover,
.hfc-form-textarea:focus,
.hfc-form-select:hover,
.hfc-form-select:focus {
	background: #FFFFFF;
	border-color: #D71920;
	box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.08);
}

.hfc-form-input::placeholder,
.hfc-form-textarea::placeholder {
	color: #94a3b8;
}

.hfc-form-textarea {
	resize: vertical;
	min-height: 80px;
}

/* File Input */
.hfc-file-input-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hfc-form-file {
	padding: 10px 12px;
	border: 1.5px dashed #cbd5e1;
	border-radius: 10px;
	background: #F5F7FA;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.25s ease;
	color: #475569;
}

.hfc-form-file:hover {
	border-color: #D71920;
	background: #FFFFFF;
}

.hfc-file-hint {
	font-size: 11px;
	color: #94a3b8;
}

/* Permission */
.hfc-form-permission {
	margin-top: 4px;
}

.hfc-form-permission-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
	cursor: pointer;
}

.hfc-form-permission-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	accent-color: #D71920;
}

/* Submit Button */
.hfc-form-submit {
	width: 100%;
	padding: 16px 24px;
	border: none;
	border-radius: 12px;
	background: #D71920;
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.hfc-form-submit:hover {
	background: #0B2D8F;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(11, 45, 143, 0.35);
}

.hfc-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Spinner */
.hfc-spinner {
	width: 20px;
	height: 20px;
	animation: hfcSpin 1s linear infinite;
}

@keyframes hfcSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Success / Error */
.hfc-form-success {
	text-align: center;
	padding: 32px 20px;
}

.hfc-form-success svg {
	margin-bottom: 16px;
}

.hfc-form-success p {
	font-size: 15px;
	color: #22c55e;
	font-weight: 600;
	line-height: 1.5;
}

.hfc-form-error p {
	font-size: 13px;
	color: #D71920;
	background: rgba(215, 25, 32, 0.08);
	padding: 10px 14px;
	border-radius: 8px;
	font-weight: 500;
	margin: 0;
}

/* =====================================================
   DOWNLOAD MODAL
   ===================================================== */
.hfc-download-modal-content {
	max-width: 480px;
}

.hfc-download-info {
	background: #F5F7FA;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
	text-align: center;
	border: 1px solid rgba(0,0,0,0.05);
}

.hfc-download-song-title {
	font-size: 18px;
	font-weight: 700;
	color: #061A3D;
	margin: 0 0 8px 0;
}

.hfc-download-price {
	font-size: 24px;
	font-weight: 800;
	color: #D71920;
}

.hfc-download-actions {
	display: flex;
	gap: 12px;
}

.hfc-download-actions > a {
	flex: 1;
	text-align: center;
	text-decoration: none;
}

.hfc-btn-outline {
	padding: 16px 24px;
	border: 2px solid #061A3D;
	border-radius: 12px;
	background: transparent;
	color: #061A3D;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: inline-block;
}

.hfc-btn-outline:hover {
	background: #061A3D;
	color: #FFFFFF;
}

/* =====================================================
   SHARE MODAL
   ===================================================== */
.hfc-share-modal-content {
	max-width: 480px;
}

.hfc-share-song-title {
	font-weight: 600;
	margin-bottom: 24px;
	color: #64748b;
}

.hfc-share-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

.hfc-share-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 12px;
	border-radius: 12px;
	background: #F5F7FA;
	color: #061A3D;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hfc-share-item svg {
	width: 28px;
	height: 28px;
}

.hfc-share-item span {
	font-size: 13px;
	font-weight: 500;
}

.hfc-share-item:hover {
	background: #E2E8F0;
	transform: translateY(-2px);
}

.hfc-share-whatsapp { color: #25D366; }
.hfc-share-facebook { color: #1877F2; }
.hfc-share-messenger { color: #00B2FF; }
.hfc-share-x { color: #000000; }
.hfc-share-reddit { color: #FF4500; }
.hfc-share-email { color: #64748b; }

.hfc-share-copy {
	display: flex;
	gap: 8px;
	background: #F5F7FA;
	padding: 6px;
	border-radius: 12px;
	border: 1px solid rgba(0,0,0,0.05);
}

.hfc-share-link-input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 0 12px;
	font-size: 14px;
	color: #475569;
	outline: none;
}

.hfc-share-copy-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 8px;
	background: #061A3D;
	color: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hfc-share-copy-btn:hover {
	background: #D71920;
}

.hfc-share-copy-btn svg {
	width: 20px;
	height: 20px;
}

/* =====================================================
   RESPONSIVE — TABLET (1024px)
   ===================================================== */
@media (max-width: 1024px) {
	.hfc-cols-4 {
		grid-template-columns: repeat(3, 1fr);
	}

	.hfc-music-grid {
		gap: 20px;
	}

	.hfc-card-body {
		padding: 16px;
	}

	.hfc-form-modal-content {
		max-width: 600px;
		padding: 32px 28px;
	}
}

/* =====================================================
   RESPONSIVE — TABLET PORTRAIT / SMALL (768px)
   ===================================================== */
@media (max-width: 768px) {
	.hfc-cols-3,
	.hfc-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.hfc-music-grid {
		gap: 16px;
	}

	/* Slider arrows smaller */
	.hfc-slider-btn {
		width: 36px;
		height: 36px;
	}
	.hfc-slider-btn svg {
		width: 16px;
		height: 16px;
	}

	/* Slider dots larger for touch */
	.hfc-slider-dot {
		width: 12px;
		height: 12px;
	}

	/* Card cover smaller on tablets */
	.hfc-card-cover {
		height: 180px;
	}

	.hfc-card-body {
		padding: 14px;
	}

	.hfc-card-title {
		font-size: 15px;
	}

	.hfc-card-artist {
		font-size: 12px;
		margin-bottom: 12px;
	}

	/* Audio player compact */
	.hfc-audio-player {
		padding: 8px 10px;
		gap: 8px;
		margin-bottom: 12px;
	}

	.hfc-player-btn {
		width: 28px;
		height: 28px;
	}

	.hfc-player-btn svg {
		width: 14px;
		height: 14px;
	}

	.hfc-player-time {
		font-size: 11px;
		min-width: 30px;
	}

	/* Action buttons compact */
	.hfc-action-btn {
		padding: 6px 10px;
		font-size: 11px;
	}

	.hfc-action-btn svg {
		width: 12px;
		height: 12px;
	}

	/* Lyrics modal */
	.hfc-lyrics-modal-content {
		width: 94%;
		padding: 28px 20px;
		max-height: 85vh;
	}

	.hfc-lyrics-modal-title {
		font-size: 19px;
	}

	.hfc-lyrics-modal-body {
		font-size: 14px;
	}

	/* Form modal */
	.hfc-form-modal-content {
		width: 95%;
		padding: 28px 20px;
		max-height: 90vh;
	}

	.hfc-form-title {
		font-size: 22px;
	}

	.hfc-form-desc {
		font-size: 13px;
		margin-bottom: 20px;
	}

	/* Play overlay visible on touch devices */
	.hfc-play-overlay {
		opacity: 1;
		background: rgba(6, 26, 61, 0.35);
	}

	.hfc-play-overlay svg {
		width: 44px;
		height: 44px;
	}

	/* Toast */
	.hfc-toast {
		font-size: 13px;
		padding: 10px 20px;
		max-width: 90vw;
		text-align: center;
	}

	/* Submit trigger */
	.hfc-submit-trigger {
		font-size: 14px;
		padding: 14px 28px;
	}
}

/* =====================================================
   RESPONSIVE — MOBILE (576px)
   ===================================================== */
@media (max-width: 576px) {
	.hfc-cols-2,
	.hfc-cols-3,
	.hfc-cols-4 {
		grid-template-columns: 1fr;
	}

	.hfc-music-grid {
		gap: 14px;
	}

	/* Card cover adjusts */
	.hfc-card-cover {
		height: 200px;
	}

	.hfc-card-body {
		padding: 14px 12px;
	}

	/* Action buttons stack */
	.hfc-card-actions {
		flex-direction: column;
	}

	.hfc-action-btn {
		justify-content: center;
	}

	/* Social links */
	.hfc-card-social {
		flex-wrap: wrap;
	}

	/* Slider arrows */
	.hfc-slider-prev { left: 2px; }
	.hfc-slider-next { right: 2px; }
	.hfc-slider-btn {
		width: 32px;
		height: 32px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	}
	.hfc-slider-btn svg {
		width: 14px;
		height: 14px;
	}

	/* Form rows stack */
	.hfc-form-row {
		flex-direction: column;
		gap: 14px;
	}

	/* Form modal — bottom sheet style */
	.hfc-form-modal {
		align-items: flex-end;
	}

	.hfc-form-modal-content {
		width: 100%;
		max-width: 100%;
		max-height: 92vh;
		border-radius: 20px 20px 0 0;
		padding: 24px 16px;
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		-webkit-overflow-scrolling: touch;
		animation: hfcFormSlideUp 0.35s ease-out;
	}

	@keyframes hfcFormSlideUp {
		from {
			transform: translateY(100%);
			opacity: 0.5;
		}
		to {
			transform: translateY(0);
			opacity: 1;
		}
	}

	/* Close button larger for mobile */
	.hfc-form-modal-close {
		width: 40px;
		height: 40px;
		font-size: 24px;
		top: 12px;
		right: 12px;
	}

	.hfc-form-title {
		font-size: 20px;
		padding-right: 48px;
	}

	.hfc-form-desc {
		font-size: 13px;
		margin-bottom: 16px;
	}

	.hfc-submit-form {
		gap: 14px;
	}

	.hfc-form-input,
	.hfc-form-textarea,
	.hfc-form-select {
		padding: 11px 12px;
		font-size: 16px; /* Prevents iOS zoom on focus */
	}

	.hfc-form-file {
		font-size: 14px;
		padding: 12px;
	}

	.hfc-form-permission-label {
		font-size: 12px;
		gap: 8px;
	}

	.hfc-form-submit {
		padding: 14px 20px;
		font-size: 15px;
	}

	/* Lyrics, Download & Share modals — also bottom sheet */
	.hfc-lyrics-modal,
	.hfc-download-modal,
	.hfc-share-modal {
		align-items: flex-end;
	}

	.hfc-lyrics-modal-content,
	.hfc-download-modal-content,
	.hfc-share-modal-content {
		width: 100%;
		max-width: 100%;
		max-height: 85vh;
		border-radius: 20px 20px 0 0;
		padding: 24px 16px;
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		-webkit-overflow-scrolling: touch;
		animation: hfcFormSlideUp 0.35s ease-out;
	}

	.hfc-lyrics-modal-close,
	.hfc-download-modal-close,
	.hfc-share-modal-close {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}

	.hfc-lyrics-modal-title,
	.hfc-download-song-title {
		font-size: 18px;
		padding-right: 48px;
	}

	.hfc-lyrics-modal-body {
		font-size: 14px;
		line-height: 1.7;
	}

	.hfc-download-actions {
		flex-direction: column;
		gap: 10px;
	}

	.hfc-btn-outline {
		padding: 14px 20px;
		font-size: 15px;
	}

	/* Submit trigger full width */
	.hfc-submit-trigger {
		width: 100%;
		justify-content: center;
		font-size: 14px;
		padding: 14px 24px;
	}

	/* Toast at bottom */
	.hfc-toast {
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		max-width: 85vw;
		font-size: 13px;
		padding: 10px 18px;
		border-radius: 8px;
	}

	/* Demo label smaller */
	.hfc-demo-label {
		font-size: 10px;
		padding: 3px 8px;
		top: 8px;
		left: 8px;
	}

	/* Empty state compact */
	.hfc-music-empty {
		padding: 40px 16px;
	}

	.hfc-music-empty svg {
		width: 40px;
		height: 40px;
	}

	.hfc-music-empty p {
		font-size: 14px;
	}
}

/* =====================================================
   RESPONSIVE — VERY SMALL MOBILE (400px)
   ===================================================== */
@media (max-width: 400px) {
	.hfc-card-cover {
		height: 160px;
	}

	.hfc-card-title {
		font-size: 14px;
	}

	.hfc-card-artist {
		font-size: 11px;
		margin-bottom: 10px;
	}

	.hfc-audio-player {
		padding: 6px 8px;
		gap: 6px;
		border-radius: 8px;
	}

	.hfc-player-btn {
		width: 26px;
		height: 26px;
	}

	.hfc-player-btn svg {
		width: 12px;
		height: 12px;
	}

	.hfc-player-time {
		font-size: 10px;
		min-width: 28px;
	}

	.hfc-action-btn {
		font-size: 11px;
		padding: 5px 8px;
	}

	.hfc-form-label {
		font-size: 12px;
	}

	.hfc-form-modal-content {
		padding: 18px 12px;
		padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}

	.hfc-form-title {
		font-size: 18px;
	}
}

/* =====================================================
   TOUCH DEVICE HELPERS
   ===================================================== */
@media (hover: none) and (pointer: coarse) {
	/* Always show play overlay on touch devices */
	.hfc-play-overlay {
		opacity: 1;
		background: rgba(6, 26, 61, 0.3);
	}

	/* Disable hover transforms on touch (prevents sticky hover) */
	.hfc-music-card:hover {
		transform: none;
	}

	.hfc-action-btn:hover {
		transform: none;
	}

	.hfc-submit-trigger:hover {
		transform: none;
	}

	.hfc-form-submit:hover {
		transform: none;
	}

	/* Larger slider dots for finger taps */
	.hfc-slider-dot {
		width: 12px;
		height: 12px;
		min-width: 44px;
		min-height: 44px;
		background-clip: content-box;
		padding: 16px;
		margin: -16px;
	}
}

/* =====================================================
   LANDSCAPE PHONE
   ===================================================== */
@media (max-height: 500px) and (orientation: landscape) {
	.hfc-form-modal-content {
		max-height: 96vh;
		padding: 16px;
	}

	.hfc-form-title {
		font-size: 18px;
		margin-bottom: 4px;
	}

	.hfc-form-desc {
		margin-bottom: 12px;
		font-size: 12px;
	}

	.hfc-submit-form {
		gap: 10px;
	}

	.hfc-form-input,
	.hfc-form-textarea,
	.hfc-form-select {
		padding: 8px 10px;
	}

	.hfc-form-submit {
		padding: 10px 16px;
	}

	.hfc-lyrics-modal-content {
		max-height: 96vh;
		padding: 16px;
	}
}
