/**
 * Gabber Discogs Importer - Embeds Styles
 * Responsive styles for video and Apple Music embeds
 */

/* Section Titles */
.gdi-section-title,
.gdi-discogs-title,
.gdi-tracklist-title,
.gdi-videos-title {
	margin-bottom: 1em;
	font-size: 1.5em;
	font-weight: 600;
}

/* Discogs Info */
.gdi-discogs-info {
	margin-bottom: 2em;
}

.gdi-discogs-info > div {
	margin-bottom: 0.5em;
}

.gdi-discogs-info p {
	margin-top: 1em;
	margin-bottom: 0;
}

.gdi-discogs-info .gdi-discogs-link {
	color: #8d1a3b;
	text-decoration: none;
}

.gdi-discogs-info .gdi-discogs-link:hover {
	text-decoration: underline;
}

/* Tracklist - Hide list numbering */
.gdi-tracklist {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.gdi-tracklist .gdi-track {
	list-style: none;
}

/* Videos Grid */
.gdi-videos-section {
	margin: 2em 0;
}

.gdi-videos-title {
	margin-bottom: 1em;
	font-size: 1.5em;
	font-weight: 600;
}

.gdi-videos-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5em;
	width: 100%;
}

/* Video Item */
.gdi-video-item {
	position: relative;
	width: 100%;
}

.gdi-video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	background: #000;
}

.gdi-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Video Link (non-YouTube) */
.gdi-video-link {
	padding: 1em;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
}

.gdi-video-link a {
	color: #0073aa;
	text-decoration: none;
	word-break: break-all;
}

.gdi-video-link a:hover {
	text-decoration: underline;
}

/* Apple Music Section */
.gdi-apple-music-section {
	margin: 2em 0;
	width: 100%;
}

.gdi-apple-music-wrapper {
	position: relative;
	width: 100%;
	max-width: 660px;
	margin: 0 auto;
}

.gdi-apple-music-wrapper iframe {
	width: 100%;
	border: 0;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
	.gdi-videos-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
	.gdi-videos-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
	.gdi-videos-section {
		margin: 1.5em 0;
	}

	.gdi-videos-title {
		font-size: 1.25em;
	}

	.gdi-videos-grid {
		gap: 1em;
	}

	.gdi-apple-music-section {
		margin: 1.5em 0;
	}
}
