/* DJ Party Videos — front-end styles
   Palette: deep indigo-black base, electric magenta + cyan accents, warm amber highlight.
*/

:root {
	--dpv-bg: #0f0a1a;
	--dpv-bg-soft: #180f28;
	--dpv-magenta: #ff2e88;
	--dpv-cyan: #2be0d0;
	--dpv-amber: #ffb020;
	--dpv-text: #f4f0fb;
	--dpv-text-dim: #b8aecb;
}

.dpv-gate,
.dpv-gallery-wrap {
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--dpv-text);
	box-sizing: border-box;
}

.dpv-gate *,
.dpv-gallery-wrap * {
	box-sizing: border-box;
}

/* ---------------- Password Gate ---------------- */

.dpv-gate {
	position: relative;
	overflow: hidden;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--dpv-bg);
	background-image: var(--dpv-bg-image, none);
	background-size: cover;
	background-position: center;
	border-radius: 4px;
	padding: 60px 24px;
	text-align: center;
	isolation: isolate;
}

.dpv-gate-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(255, 46, 136, 0.25), transparent 55%),
		radial-gradient(ellipse at 75% 80%, rgba(43, 224, 208, 0.2), transparent 55%),
		linear-gradient(180deg, rgba(15, 10, 26, 0.75), rgba(15, 10, 26, 0.92));
	z-index: 0;
}

.dpv-eq {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 10px;
	height: 90px;
	z-index: 1;
	opacity: 0.5;
	pointer-events: none;
}

.dpv-eq span {
	width: 6px;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(180deg, var(--dpv-cyan), var(--dpv-magenta));
	animation: dpv-bounce 1.4s ease-in-out infinite;
}

.dpv-eq span:nth-child(1) { height: 20%; animation-delay: -1.1s; }
.dpv-eq span:nth-child(2) { height: 55%; animation-delay: -0.8s; }
.dpv-eq span:nth-child(3) { height: 30%; animation-delay: -1.3s; }
.dpv-eq span:nth-child(4) { height: 80%; animation-delay: -0.4s; }
.dpv-eq span:nth-child(5) { height: 40%; animation-delay: -0.9s; }
.dpv-eq span:nth-child(6) { height: 65%; animation-delay: -0.2s; }
.dpv-eq span:nth-child(7) { height: 25%; animation-delay: -1.4s; }

@keyframes dpv-bounce {
	0%, 100% { transform: scaleY(0.4); }
	50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
	.dpv-eq span { animation: none; }
}

.dpv-gate-content {
	position: relative;
	z-index: 2;
	max-width: 560px;
}

.dpv-gate-headline {
	font-family: 'Anton', 'Work Sans', sans-serif;
	font-weight: 400;
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: 0.01em;
	margin: 0 0 16px;
	color: var(--dpv-text);
}

.dpv-gate-subtitle {
	font-size: 1.05rem;
	color: var(--dpv-text-dim);
	margin: 0 0 32px;
	line-height: 1.5;
}

.dpv-gate-field {
	display: flex;
	gap: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	padding: 6px 6px 6px 22px;
	max-width: 420px;
	margin: 0 auto;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dpv-gate-field:focus-within {
	border-color: var(--dpv-cyan);
	box-shadow: 0 0 0 4px rgba(43, 224, 208, 0.15);
}

.dpv-gate-field input[type="password"] {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: var(--dpv-text);
	font-size: 1rem;
	min-width: 0;
}

.dpv-gate-field input[type="password"]::placeholder {
	color: var(--dpv-text-dim);
}

.dpv-gate-field button {
	background: linear-gradient(135deg, var(--dpv-magenta), var(--dpv-cyan));
	color: #0f0a1a;
	border: none;
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.dpv-gate-field button:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.dpv-gate-error {
	margin: 16px 0 0;
	color: var(--dpv-amber);
	font-size: 0.9rem;
}

/* ---------------- Gallery ---------------- */

.dpv-gallery-wrap {
	padding: 20px 0;
}

.dpv-empty {
	text-align: center;
	color: var(--dpv-text-dim);
	padding: 60px 20px;
}

.dpv-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.dpv-card {
	display: block;
	width: 100%;
	background: var(--dpv-bg-soft);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dpv-card:hover,
.dpv-card:focus-visible {
	border-color: var(--dpv-magenta);
	box-shadow: 0 0 0 1px var(--dpv-magenta), 0 12px 30px -12px rgba(255, 46, 136, 0.4);
	transform: translateY(-3px);
	outline: none;
}

.dpv-card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #22163a, #0f0a1a);
	overflow: hidden;
}

.dpv-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dpv-card-thumb-fallback {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 46, 136, 0.35), rgba(43, 224, 208, 0.25));
}

.dpv-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(15, 10, 26, 0.55);
	border: 2px solid rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.dpv-card:hover .dpv-play-icon {
	background: var(--dpv-magenta);
	transform: translate(-50%, -50%) scale(1.08);
}

.dpv-play-icon svg {
	width: 20px;
	height: 20px;
	fill: #fff;
	margin-left: 3px;
}

.dpv-card-info {
	display: block;
	padding: 16px 18px 18px;
}

.dpv-card-title {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 4px;
}

.dpv-card-date {
	display: block;
	font-size: 0.85rem;
	color: var(--dpv-text-dim);
}

/* ---------------- Modal ---------------- */

.dpv-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(6, 4, 12, 0.92);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.dpv-modal.is-open {
	display: flex;
}

.dpv-modal-inner {
	position: relative;
	width: 100%;
	max-width: 960px;
}

.dpv-modal-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.dpv-modal-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.dpv-modal-close {
	position: absolute;
	top: -44px;
	right: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: 6px 10px;
}

.dpv-modal-close:hover {
	color: var(--dpv-magenta);
}

@media (max-width: 600px) {
	.dpv-gate-field {
		flex-direction: column;
		border-radius: 20px;
		padding: 16px;
	}
	.dpv-gate-field button {
		width: 100%;
	}
}
