@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,500&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

#plus-music-gate, #plus-music-gate *,
.pm-dock, .pm-dock *,
.pm-playlist, .pm-playlist * {
	box-sizing: border-box;
}

/* ---------- GATE ---------- */
.pm-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #000000;
	color: #f5f5f5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	text-align: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}
.pm-gate.pm-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.pm-gate-mark {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.28em;
	color: #f5f5f5;
	text-transform: uppercase;
}
.pm-gate-title {
	font-family: 'Playfair Display', serif;
	font-weight: 900;
	font-size: clamp(30px, 7vw, 58px);
	letter-spacing: 0.02em;
}
.pm-gate-title .pm-plus {
	margin: 0 10px;
}
.pm-gate-sub {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: #999999;
	max-width: 320px;
	line-height: 1.6;
}
.pm-enter-btn {
	margin-top: 8px;
	background: transparent;
	border: 1px solid #f5f5f5;
	color: #f5f5f5;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.2em;
	padding: 16px 34px;
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
}
.pm-enter-btn:hover {
	background: #f5f5f5;
	color: #000000;
}
.pm-skip-btn {
	background: none;
	border: none;
	color: #666666;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-decoration: underline;
	cursor: pointer;
	padding: 6px;
}
.pm-skip-btn:hover {
	color: #999999;
}

/* ---------- DOCK ---------- */
.pm-dock {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px clamp(16px, 4vw, 40px);
	color: #f5f5f5;
	font-family: 'IBM Plex Mono', monospace;
	opacity: 0;
	transform: translateY(100%);
	transition: opacity 0.5s ease, transform 0.5s ease;
	pointer-events: none;
}
.pm-dock.pm-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.pm-dock-left {
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	min-width: 0;
}
.pm-play-toggle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f5f5f5;
	background: none;
	cursor: pointer;
	flex-shrink: 0;
	font-size: 13px;
}
.pm-track-info {
	min-width: 0;
	overflow: hidden;
}
.pm-ttl {
	font-size: 12px;
	letter-spacing: 0.06em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pm-art {
	font-size: 10px;
	color: #888888;
	letter-spacing: 0.1em;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pm-wave {
	display: none;
	align-items: center;
	gap: 2px;
	height: 14px;
	flex-shrink: 0;
}
.pm-wave.pm-playing {
	display: flex;
}
.pm-wave span {
	width: 2px;
	background: #f5f5f5;
	animation: pm-wv 0.9s ease-in-out infinite;
}
.pm-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.pm-wave span:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.pm-wave span:nth-child(3) { height: 65%; animation-delay: 0.3s; }
.pm-wave span:nth-child(4) { height: 85%; animation-delay: 0.45s; }
@keyframes pm-wv {
	0%, 100% { transform: scaleY(0.4); }
	50% { transform: scaleY(1); }
}
.pm-list-toggle {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: 0.14em;
	color: #f5f5f5;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 8px 14px;
	cursor: pointer;
	flex-shrink: 0;
	margin-left: 14px;
}
.pm-list-toggle:hover {
	border-color: #f5f5f5;
}

/* ---------- PLAYLIST PANEL ---------- */
.pm-playlist {
	position: fixed;
	bottom: 64px;
	right: clamp(16px, 4vw, 40px);
	z-index: 9997;
	background: #0c0c0c;
	border: 1px solid rgba(255, 255, 255, 0.16);
	width: 300px;
	max-width: 88vw;
	max-height: 60vh;
	overflow-y: auto;
	padding: 18px;
	display: none;
	color: #f5f5f5;
	font-family: 'IBM Plex Mono', monospace;
}
.pm-playlist.pm-open {
	display: block;
}
.pm-playlist h4 {
	font-size: 11px;
	letter-spacing: 0.16em;
	color: #888888;
	margin: 0 0 14px;
	font-weight: 400;
}
.pm-track-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	cursor: pointer;
}
.pm-track-row:first-of-type {
	border-top: none;
}
.pm-track-row:hover .pm-track-name {
	color: #ffffff;
}
.pm-track-name {
	font-size: 12px;
	color: #d9d9d9;
}
.pm-track-artist-sm {
	font-size: 10px;
	color: #777777;
	margin-top: 2px;
}
.pm-track-row.pm-active .pm-track-name {
	color: #ffffff;
	font-weight: 600;
}

@media (max-width: 600px) {
	.pm-dock-left { gap: 10px; }
	.pm-list-toggle { padding: 8px 10px; font-size: 10px; }
}
